Flatten docs routing path #10323
-
Let's say I have the following docs structure.
In addition, I have two navbars: Even though I move them all the time, I rarely change the base name. In this case,
In this case, the Let's assume no multiple docs have the same base name. Method 1Move all docs to the top level
Method 2Add Method 3There's gotta be some ways I can achieve this at Docusaurus's level, right? Perhaps tweaking some config? Adding a plugin? Swizzling some components? Thoughts are welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As we already say in the docs:
Which fits your method 2. Method 3 is also possible, which just means you'll use the |
Beta Was this translation helpful? Give feedback.
As we already say in the docs:
Which fits your method 2. Method 3 is also possible, which just means you'll use the
parseFrontMatter
config option to programmatically inject a slug front matter.