How to make just the docs show more than the first title in the sidebar
- User
How to make just the docs show more than the first title in the sidebar
Assistant
I need more context to give you the best answer. Could you clarify what documentation system you're using? Here are solutions for common scenarios: If you're using Just the Docs (Jekyll theme): The sidebar navigation automatically shows all pages based on your front matter configuration. To show multiple levels:
Set page hierarchy in each markdown file's front matter:
yaml--- title: My Page parent: Parent Page Name nav_order: 1
For grandchildren pages:
yaml--- title: My Subpage parent: Child Page grand_parent: Parent Page
Make a page collapsible (to show/hide children):
yaml--- title: Parent Page has_children: true nav_order: 2
Control default collapse state:
yaml--- title: Parent Page has_children: true has_toc: false nav_fold: true # Collapsed by default
If you're using Docusaurus, MkDocs, or another tool: Let me know which one, and I can provide specific instructions for that platform. What documentation system are you working with?
- User
Can it show subtitles from each page instead of just on title per page?
Assistant
Ah, I understand now! You want the sidebar to show headings/subtitles from within each page, not just the page titles themselves.For Just the Docs (Jekyll):Just the Docs has a table of contents feature, but it appears on the page itself by default, not in the sidebar. Here are your options:Option 1: Enable On-Page TOC (Standard Feature) Add this to your page's front matter: yaml--- title: My Page has_toc: true # Shows headings on the page (right side or top) ---Option 2: Show Headings in Sidebar (Requires Customization) This isn't built-in, but you can customize it: Edit _config.yml to enable heading collection:
yaml# Enable automatic heading IDs kramdown: auto_ids: true toc_levels: 2..3 # Which heading levels to include Customize the navigation template by overriding _includes/nav.html to parse and display headings from each page. This requires custom Liquid templating. Option 3: Use Anchor Links Plugin Some sites add an "On this page" section to the sidebar showing the current page's headings. You'd need to add custom JavaScript to
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.