Skip to content

[Feature request] Automatically prepend all paths in navbar and sidebar with root path of locale #128

Closed Answered by Mister-Hope
lifehackerhansol asked this question in Q&A
Discussion options

You must be logged in to vote

By the way, If you write the grammar well, your alternative is our recommended approach about reusing navbar and sidebar across the locates. You can create a generator function for your navbar and sidebar , and reuse it.

E.g.:

const getNavbar = (locales: string) => [
  `${locales}`,
  `${locales}guide/`,
  `${locales}about`,
]

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mister-Hope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #124 on May 13, 2024 05:14.