Skip to content

Commit d37a137

Browse files
committed
docs: Re-organize docs a bit
1 parent c1aea6e commit d37a137

8 files changed

Lines changed: 22 additions & 33 deletions

File tree

docs/troubleshooting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ when it should be `[Section][pytkdocs.parsers.docstrings.Section]`.
4848
## Some objects are not rendered (they do not appear in the generated docs)
4949

5050
- Make sure the configuration options of the handler are correct.
51-
Check the documentation for [Handlers](handlers/overview.md) to see the available options for each handler.
51+
Check the documentation for [Handlers](usage/handlers.md) to see the available options for each handler.
5252
- Also make sure your documentation in your source code is formatted correctly.
5353
For Python code, check the [supported docstring styles](https://mkdocstrings.github.io/python/usage/#supported-docstrings-styles) page.
5454
- Re-run the Mkdocs command with `-v`, and carefully read any traceback.
@@ -116,13 +116,13 @@ use this workaround.
116116

117117
Please open an ticket on the [bugtracker][bugtracker] with a detailed
118118
explanation and screenshots of the bad-looking parts.
119-
Note that you can always [customize the look](theming.md) of *mkdocstrings* blocks -- through both HTML and CSS.
119+
Note that you can always [customize the look](usage/theming.md) of *mkdocstrings* blocks -- through both HTML and CSS.
120120

121121
## Warning: could not find cross-reference target
122122

123123
TIP: **New in version 0.15.**
124124
Cross-linking used to include any Markdown heading, but now it's only for *mkdocstrings* identifiers by default.
125-
See [Cross-references to any Markdown heading](usage.md#cross-references-to-any-markdown-heading) to opt back in.
125+
See [Cross-references to any Markdown heading](usage/index.md#cross-references-to-any-markdown-heading) to opt back in.
126126

127127
Make sure the referenced object is properly rendered: verify your configuration options.
128128

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ A handler is what makes it possible to collect and render documentation for a pa
55
## Available handlers
66

77
- <a class="external" href="https://mkdocstrings.github.io/crystal/">Crystal</a>
8+
- <a class="external" href="https://mkdocstrings.github.io/python/">Python</a>
89
- <a class="external" href="https://mkdocstrings.github.io/python-legacy/">Python (Legacy)</a>
9-
- <a class="external" href="https://mkdocstrings.github.io/python/">Python (Experimental)</a>
1010

1111
## About the Python handlers
1212

docs/usage.md renamed to docs/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ The above is equivalent to:
142142
```
143143

144144
Some handlers accept additional global configuration.
145-
Check the documentation for your handler of interest in [Handlers](handlers/overview.md).
145+
Check the documentation for your handler of interest in [Handlers](handlers.md).
146146

147147
## Cross-references
148148

File renamed without changes.

mkdocs.insiders.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
INHERIT: mkdocs.yml
22

3-
plugins:
4-
typeset: {}
3+
# waiting for https://github.com/squidfunk/mkdocs-material/issues/5446
4+
# plugins:
5+
# typeset: {}

mkdocs.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ nav:
1515
- Credits: credits.md
1616
- License: license.md
1717
- Usage:
18-
- usage.md
19-
- Theming: theming.md
20-
- Handlers:
21-
- handlers/overview.md
18+
- usage/index.md
19+
- Theming: usage/theming.md
20+
- Handlers: usage/handlers.md
21+
- All handlers:
2222
- Crystal: https://mkdocstrings.github.io/crystal/
23+
- Python: https://mkdocstrings.github.io/python/
2324
- Python (Legacy): https://mkdocstrings.github.io/python-legacy/
24-
- Python (Experimental): https://mkdocstrings.github.io/python/
25-
- Recipes: recipes.md
26-
- Troubleshooting: troubleshooting.md
25+
- Guides:
26+
- Recipes: recipes.md
27+
- Troubleshooting: troubleshooting.md
2728
# defer to gen-files + literate-nav
2829
- Code Reference: reference/
2930
- Development:
@@ -91,6 +92,7 @@ markdown_extensions:
9192
- pymdownx.emoji:
9293
emoji_index: !!python/name:materialx.emoji.twemoji
9394
emoji_generator: !!python/name:materialx.emoji.to_svg
95+
- pymdownx.details
9496
- pymdownx.magiclink
9597
- pymdownx.snippets:
9698
check_paths: true
@@ -129,6 +131,10 @@ plugins:
129131
git-committers:
130132
enabled: !ENV [DEPLOY, false]
131133
repository: mkdocstrings/mkdocstrings
134+
redirects:
135+
redirect_maps:
136+
theming.md: usage/theming.md
137+
handlers/overview.md: usage/handlers.md
132138
minify:
133139
minify_html: !ENV [DEPLOY, false]
134140

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ docs = [
7777
"mkdocs-literate-nav>=0.4",
7878
"mkdocs-material>=7.3",
7979
"mkdocs-minify-plugin>=0.6.4",
80+
"mkdocs-redirects>=1.2.0",
8081
"mkdocstrings-python>=0.5.1",
8182
"toml>=0.10",
8283
]

scripts/gen_redirects.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)