wp-content/themes/ledger/
Ledger
A documentation theme whose sidebar builds itself from your page hierarchy. No menu to maintain.
== Description ==
Documentation goes stale at the edges first, and the navigation is the edge. Ledger builds its sidebar from your page hierarchy, so moving a page moves its link and nobody has to remember to update a menu that only breaks for readers.
Deep hierarchies stop indenting after four levels. Past that, indentation stops communicating structure and starts eating the column.
The current page is marked with aria-current, not just a class, so it is announced as current rather than merely coloured differently.
== Screenshots ==
Numbered the way they ship in /assets/. Click any one to see it full width.
== Installation ==
- Install and activate the theme.
- Create your documentation as pages, nested however the material nests.
- Set the top-level page as your front page, or leave it in the hierarchy — the sidebar handles both.
No menu to assign. That is the feature.
== Frequently asked questions ==
Can I reorder the sidebar?
Use the page order field. The sidebar reads menu_order first and title second.
Does it work with posts?
Posts get a simpler layout with no sidebar. Documentation is hierarchical; a blog is not.
What about search?
Core search, styled to match. Anything better than core search is a plugin’s job.
== Changelog ==
= 1.2.3 =
- Sidebar navigation now marks the current page with aria-current, and deep hierarchies stop indenting after four levels.
= 1.2.0 =
- Sidebar collapses to a disclosure on narrow screens instead of stacking the whole tree above the content.
= 1.0.0 =
- First release.