Skip to content

Flatten docs routing path #10323

Answered by Josh-Cena
tomy0000000 asked this question in Q&A
Jul 20, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

As we already say in the docs:

Our recommendation for file system organization is: make your file system mirror the sidebar structure (so you don't need to handwrite your sidebars.js file), and use the slug front matter to customize URLs of each document

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tomy0000000
Comment options

Answer selected by tomy0000000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants