Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
0a0a9038
Commit
0a0a9038
authored
Jul 07, 2018
by
gabrieldemarmiesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Take into account the anchor when redirecting.
parent
a5e54607
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
docs/conf.py
docs/conf.py
+7
-3
No files found.
docs/conf.py
View file @
0a0a9038
...
...
@@ -462,12 +462,16 @@ pdf_fit_background_mode = 'scale'
html_template
=
"""
<html>
<head>
<meta http-equiv="refresh" content="1; url={0}:" />
<script>
window.location.href = "{0}"
// Some browsers include the hash character in the anchor, strip it out
const anchor = window.location.hash.replace(/^#(.*)/, '$1');
// Redirect to the new-style URL
window.location = '{}#' + anchor;
</script>
</head>
</html>"""
</html>
"""
list_redirects
=
[(
'reference/language_basics'
,
'userguide/language_basics'
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment