-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top-level category index pages appear twice in the sidebar #87
Comments
The sidebar generator is in const docs = getAutogenDocs();
const fsModel = treeify(docs);
+ console.log("fsModel", JSON.stringify(fsModel, undefined, 2));
const sidebarWithPosition = generateSidebar(fsModel);
const sortedSidebar = sortItems(sidebarWithPosition);
return sortedSidebar; The fsModel {
"backends.mdx": "reference/backends",
"cloud-faq.mdx": "reference/cloud-faq",
"config.mdx": "reference/config",
"join-methods.mdx": "reference/join-methods",
"networking.mdx": "reference/networking",
"predicate-language.mdx": "reference/predicate-language",
"reference.mdx": "reference/reference",
"resources.mdx": "reference/resources",
"signals.mdx": "reference/signals",
"signature-algorithms.mdx": "reference/signature-algorithms",
"user-types.mdx": "reference/user-types",
"access-controls": {
"access-controls.mdx": "reference/access-controls/access-controls",
"access-lists.mdx": "reference/access-controls/access-lists",
"authentication.mdx": "reference/access-controls/authentication",
"login-rules.mdx": "reference/access-controls/login-rules",
"roles.mdx": "reference/access-controls/roles",
"saml-idp.mdx": "reference/access-controls/saml-idp"
},
// [...] |
I propose we:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The sidebar displays top-level category index pages as entries within their respective categories. For example, the section of the sidebar for "Admin Guides" includes the "Teleport Admin Guides" page as a page within the category, when it should be the page that readers visit when they click "Admin Guides".
Fix the docs site configuration so that clicking top-level categories on the sidebar navigates to the relevant index page.
The text was updated successfully, but these errors were encountered: