-
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
Fix the way the sidebar renders top-level category index pages #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:
|
A related issue: |
There are two problems with how the docs sidebar renders top-level docs category pages, e.g., "Admin Guides" and "User Guides":
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: