Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 403c00f

Browse filesBrowse files
committed
Add redirects
1 parent 1fe880b commit 403c00f
Copy full SHA for 403c00f

File tree

2 files changed

+47
-1
lines changed
Filter options

2 files changed

+47
-1
lines changed

‎conf.py

Copy file name to clipboardExpand all lines: conf.py
+46-1Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# 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+
]
3338
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
3439
todo_include_todos = True
3540

@@ -226,6 +231,44 @@
226231
# match any anchor that starts with a '/' since this is an invalid HTML anchor
227232
'\/.*',
228233
]
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+
}
229272

230273
linkcheck_ignore = [
231274
# The voters repo is private and appears as a 404
@@ -238,6 +281,8 @@
238281
'https://discuss.python.org/groups/admins',
239282
]
240283

284+
285+
241286
# Use our custom CSS stylesheet to differentiate us from the official python
242287
# docs.
243288
def setup(app):

‎requirements.txt

Copy file name to clipboardExpand all lines: requirements.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Sphinx==5.0.2
22
furo>=2022.6.4
33
sphinx_copybutton>=0.3.3
44
sphinx-lint<1
5+
sphinxext-rediraffe

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.