-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
Summary
Currently, docs-content
is being treated as a single content set by docs-builder
. While this approach works in many cases, it poses a problem when generating the main TOC. If we generate one combined TOC, it results in over 600+ L1/L2 elements, which is far too many for authors to navigate effectively.
For comparison, the elasticsearch.md sample repo build has about 300 nav elements, and even that feels dense. A single TOC of this size makes it difficult for contributors to effectively add, move, or plan content.
Proposed Solution
To make navigation more manageable for writers working within docs-content
, we propose splitting the TOC into smaller, more digestible chunks. Specifically:
- Split the TOC at the top level: Break the content into multiple TOCs corresponding to individual content sets or categories.
- Add a selection mechanism: Provide writers with a way to toggle between these TOCs in the local/preview builds, such as:
- Selectable tabs across the top: Each tab represents a distinct content set or category.
- A drop-down above the nav: Allows users to choose which content set they want to view.
Why
- A smaller, focused TOC will help authors navigate content more efficiently and reduce cognitive overload.
- Breaking the TOC into distinct chunks will allow writers to focus on specific content sets, making it easier to move, organize, and plan content updates.
Next Steps
- Evaluate the feasibility of splitting TOCs in
docs-content
builds without impacting other content sets. - Decide what the TOC selection mechanism is.
- Implement the split TOCs functionality in local/preview builds for testing and feedback.
cc @reakaleek
Metadata
Metadata
Assignees
Labels
No labels