|
29 | 29 |
|
30 | 30 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
31 | 31 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
32 |
| -extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx_copybutton'] |
| 32 | +extensions = [ |
| 33 | + 'sphinx.ext.intersphinx', |
| 34 | + 'sphinx.ext.todo', |
| 35 | + 'sphinx_copybutton', |
| 36 | + 'sphinxext.rediraffe', |
| 37 | +] |
33 | 38 | intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
|
34 | 39 | todo_include_todos = True
|
35 | 40 |
|
|
226 | 231 | # match any anchor that starts with a '/' since this is an invalid HTML anchor
|
227 | 232 | '\/.*',
|
228 | 233 | ]
|
| 234 | +rediraffe_redirects = { |
| 235 | + "clang.rst": "advanced-tools/clang.rst", |
| 236 | + "coverity.rst": "advanced-tools/coverity.rst", |
| 237 | + "gdb.rst": "advanced-tools/gdb.rst", |
| 238 | + "coredev.rst": "core-developers/become-core-developer.rst", |
| 239 | + "committing.rst": "core-developers/committing.rst", |
| 240 | + "developers.rst": "core-developers/developer-log.rst", |
| 241 | + "experts.rst": "core-developers/experts.rst", |
| 242 | + "motivations.rst": "core-developers/motivations.rst", |
| 243 | + "c-api.rst": "developer-workflow/c-api.rst", |
| 244 | + "communication.rst": "developer-workflow/communication-channels.rst", |
| 245 | + "devcycle.rst": "developer-workflow/development-cycle.rst", |
| 246 | + "extensions.rst": "developer-workflow/extension-modules.rst", |
| 247 | + "grammar.rst": "developer-workflow/grammar.rst", |
| 248 | + "langchanges.rst": "developer-workflow/lang-changes.rst", |
| 249 | + "porting.rst": "developer-workflow/porting.rst", |
| 250 | + "stdlibchanges.rst": "developer-workflow/stdlib.rst", |
| 251 | + "docquality.rst": "documentation/help-documenting.rst", |
| 252 | + "documenting.rst": "documentation/start-documenting.rst", |
| 253 | + "fixingissues.rst": "getting-started/fixing-issues.rst", |
| 254 | + "help.rst": "getting-started/getting-help.rst", |
| 255 | + "gitbootcamp.rst": "getting-started/git-boot-camp.rst", |
| 256 | + "pullrequest.rst": "getting-started/pull-request-lifecycle.rst", |
| 257 | + "setup.rst": "getting-started/setup-building.rst", |
| 258 | + "compiler.rst": "internals/compiler.rst", |
| 259 | + "exploring.rst": "internals/exploring.rst", |
| 260 | + "garbage_collector.rst": "internals/garbage-collector.rst", |
| 261 | + "parser.rst": "internals/parser.rst", |
| 262 | + "buildbots.rst": "testing/buildbots.rst", |
| 263 | + "coverage.rst": "testing/coverage.rst", |
| 264 | + "buildworker.rst": "testing/new-buildbot-worker.rst", |
| 265 | + "runtests.rst": "testing/run-write-tests.rst", |
| 266 | + "silencewarnings.rst": "testing/silence-warnings.rst", |
| 267 | + "gh-faq.rst": "triage/github-bpo-faq.rst", |
| 268 | + "tracker.rst": "triage/issue-tracker.rst", |
| 269 | + "gh-labels.rst": "triage/labels.rst", |
| 270 | + "triaging.rst": "triage/triaging.rst", |
| 271 | +} |
229 | 272 |
|
230 | 273 | linkcheck_ignore = [
|
231 | 274 | # The voters repo is private and appears as a 404
|
|
238 | 281 | 'https://discuss.python.org/groups/admins',
|
239 | 282 | ]
|
240 | 283 |
|
| 284 | + |
| 285 | + |
241 | 286 | # Use our custom CSS stylesheet to differentiate us from the official python
|
242 | 287 | # docs.
|
243 | 288 | def setup(app):
|
|
0 commit comments