An MkDocs plugin that simplifies configuring page titles and their order through .pages configuration files
56
Evaluation — 56%
↓ 0.94xAgent success when using this tile
Create a helper that configures navigation sorting for a docs site using the dependency's sort options. The helper should rely on the dependency to apply ordering rather than manual sorting.
API.md, guide.md, LICENSE.md and a guides/ section, the navigation lists the root pages in descending alphabetical order ignoring case, followed by the Guides section. Expected titles sequence: Guide, LICENSE, API, Guides. @testguides/ containing a tutorials/ subsection and markdown pages lesson1.md, lesson2.md, the navigation places sections before pages and keeps page titles in natural ascending order. Expected titles sequence within Guides: Tutorials, Lesson 1, Lesson 2. @testreference/ via a deep glob, items are sorted by filename rather than full path and respect descending order, so api.md in reference/v1/ appears before concepts.md in reference/v2/ when their filenames sort that way. @test@generates
from pathlib import Path
from typing import List
def build_sorted_nav(docs_root: Path) -> List[str]:
"""
Build the navigation for docs_root using the dependency's sorting controls and return
the ordered display titles (including section headings) as they appear in the final nav.
"""Provides navigation sorting controls for MkDocs.
Install with Tessl CLI
npx tessl i tessl/pypi-mkdocs-awesome-pages-pluginevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10