File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
from pathlib import Path
4
4
5
5
import mkdocs_gen_files
6
+ from natsort import natsorted
6
7
7
8
nav = mkdocs_gen_files .Nav ()
8
9
mod_symbol = '<code class="doc-symbol doc-symbol-nav doc-symbol-module"></code>'
9
10
10
11
root = Path (__file__ ).parents [2 ]
11
12
src = root / "blueprints"
12
13
13
- for path in sorted (src .rglob ("*.py" )):
14
+ for path in natsorted (src .rglob ("*.py" )):
14
15
module_path = path .relative_to (src ).with_suffix ("" )
15
16
doc_path = path .relative_to (src ).with_suffix (".md" )
16
17
full_doc_path = Path ("API reference" , doc_path )
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ mkdocs-open-in-new-tab ~= 1.0.3
5
5
mkdocs-nav-weight ~= 0.2.0
6
6
mkdocs-git-revision-date-localized-plugin ~= 1.2.6
7
7
mkdocstrings[python] ~= 0.27.0
8
- mkdocs-gen-files ~= 0.5.0
8
+ mkdocs-gen-files ~= 0.5.0
9
+ mkdocs-awesome-nav ~= v3.0.0
10
+ natsorted ~= 8.4.0
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ plugins:
91
91
unwrap_annotated : true
92
92
docstring_section_style : list
93
93
show_if_no_docstring : false
94
+ - awesome-nav
94
95
95
96
markdown_extensions :
96
97
- pymdownx.highlight :
You can’t perform that action at this time.
0 commit comments