Table of Contents 🚧 WIP¶
A table of contents (TOC) helps users navigate through your README by providing a structured overview of all sections. README-AI offers various TOC styles to enhance readability and organization of your documentation.
TOC Style Options¶
Use the --toc-style
option to select from the following styles:
🚧 WIP
🚧 WIP
🔗 Table of Contents¶
I. Overview
II. Features
III. Installation
IV. Usage
V. Contributing
VI. License
How It Works¶
README-AI automatically generates a table of contents based on the headers in your README file. The process involves:
- Section Detection: Analyzes markdown headers (H1-H6) in your content
- Anchor Generation: Creates anchor links by converting headers to URL-friendly format
- Style Application: Formats the TOC according to your chosen style
- Hierarchy Preservation: Maintains proper nesting of subsections (where applicable)
Usage¶
Using the default bullet style:
Using the fold style, which nests the index under a collapsible section:
Customizing the TOC with additional CLI options: