Skip to content

Commit d288c8b

Browse files
committed
fix(docs[redirects]): remove cli.md self-redirect for dirhtml, revert suppress_warnings
why: cli.md → commands/index.md → cli/index.md chain produces same dirhtml output path (cli/index.html) as the real cli/index.md file. Rediraffe reports "already exists" and exits with code 1. what: - Comment out cli.md redirect (same dirhtml output as cli/index.md) - Revert docutils suppress_warnings (didn't help, wrong approach)
1 parent b5b434c commit d288c8b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@
128128
# (types in TYPE_CHECKING blocks used for circular import avoidance)
129129
suppress_warnings = [
130130
"sphinx_autodoc_typehints.forward_reference",
131-
# dirhtml builder creates duplicate implicit labels across CLI pages
132-
# (each argparse page generates "Usage", "Options", "Examples" headings)
133-
"docutils",
134131
]
135132

136133
# sphinxext.opengraph

docs/redirects.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"cli.md" "commands/index.md"
1+
# "cli.md" commands/index.md → cli/index.md: not needed with dirhtml (same output path)
22
# "api.md" → api/index.md: not needed with dirhtml (same output path as api/index.md redirect)
33
"examples.md" "configuration/examples.md"
44
"plugin_system.md" "plugins/index.md"

0 commit comments

Comments
 (0)