Skip to content

Commit

Permalink
simplify docs URL structure
Browse files Browse the repository at this point in the history
Remove redundant "docs" prefix from documentation URLs by setting routeBasePath to "/"
and updating navigation links.
  • Loading branch information
a-hilaly committed Nov 10, 2024
1 parent 9410bf5 commit f5d0321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const config: Config = {
"classic",
{
docs: {
routeBasePath: "/",

sidebarPath: "./sidebars.ts",
versions: {
current: {
Expand Down Expand Up @@ -124,7 +126,7 @@ const config: Config = {
items: [
{
label: "Tutorial",
to: "/docs/docs/overview",
to: "/docs/overview",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--primary button--lg"
to="/docs/docs/overview"
to="/docs/overview"
>
Get started
</Link>
Expand Down

0 comments on commit f5d0321

Please sign in to comment.