Documentation
Navigation
ctrl alt doc builds navigation from the structure of your docs/ directory.
Directories become categories, while Markdown files become documentation pages.
Example structure #
text
docs/
├── index.md
├── getting-started/
│ ├── _category.yml
│ ├── index.md
│ └── installation.md
└── reference/
├── _category.yml
├── index.md
└── kitchen-sink.mdCategories #
A directory represents a category.
An index.md inside that directory becomes the category's landing page.
For example:
text
docs/getting-started/index.mdbecomes:
text
/getting-startedPages #
Markdown files other than index.md become individual pages.
For example:
text
docs/getting-started/installation.mdbecomes:
text
/getting-started/installationCategory configuration #
A category can have an _category.yml file.
This can be used to configure things such as its label, position, and collapsed state.
Example:
yaml
label: Getting Started
position: 1
collapsed: falseSidebar configuration #
Individual pages can also control how they appear in the sidebar using frontmatter.
See Frontmatter for details.
