Merge pull request #32 from PR0M3TH3AN/codex/add-numbered-sorting-to-folder-entries

Number doc sections and explain ordering
This commit is contained in:
thePR0M3TH3AN
2025-07-10 15:44:32 -04:00
committed by GitHub
13 changed files with 15 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
Archivox automatically turns your Markdown files into a full documentation site with a responsive layout and search. 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 * Collapsible mobile menu and dark-mode switch
* Client-side search powered by Lunr.js * Client-side search powered by Lunr.js
* Shortcodes for rich content (images, tabs, notes) * Shortcodes for rich content (images, tabs, notes)

View 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.