mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2025-09-07 14:48:40 +00:00
Merge pull request #32 from PR0M3TH3AN/codex/add-numbered-sorting-to-folder-entries
Number doc sections and explain ordering
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Archivox automatically turns your Markdown files into a full documentation site with a responsive layout and search.
|
||||
|
||||
* Sidebar navigation generated from folders
|
||||
* Sidebar navigation generated from folders (prefix names with numbers to control order)
|
||||
* Collapsible mobile menu and dark-mode switch
|
||||
* Client-side search powered by Lunr.js
|
||||
* Shortcodes for rich content (images, tabs, notes)
|
14
docs/content/02-features/navigation.md
Normal file
14
docs/content/02-features/navigation.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Controlling Sidebar Order
|
||||
|
||||
Archivox builds the sidebar by scanning the `content/` directory. Folders and files are sorted alphabetically by default. To set a custom order, prefix the names with numbers like `01-` or `02-`.
|
||||
|
||||
```
|
||||
content/
|
||||
01-getting-started/
|
||||
01-install.md
|
||||
02-build.md
|
||||
02-features/
|
||||
03-customization/
|
||||
```
|
||||
|
||||
Numbers are stripped from the displayed titles, but they determine the ordering in the navigation. Nested folders work the same way, letting you create subsections within a section.
|
Reference in New Issue
Block a user