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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
ad37cba5
Commit
ad37cba5
authored
6 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only overwrite the href on legacy docs redirects, not the complete URL.
parent
c9c2ee2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
docs/conf.py
docs/conf.py
+4
-12
No files found.
docs/conf.py
View file @
ad37cba5
...
...
@@ -459,22 +459,14 @@ pdf_fit_background_mode = 'scale'
# Making redirection:
html_template
=
"""
html_template
=
"""
\
<html>
<head>
<script>
// Redirect to the new-style URL
var new_location = '{0}'
// Some browsers include the hash character in the anchor, strip it out
const anchor = window.location.hash.replace(/^#(.*)/, '$1');
if (anchor){{
new_location += '#' + anchor;
}}
window.location = new_location
// Redirect to the new-style URL, but keep any #anchor etc.
window.location.href = '{0}';
</script>
<meta http-equiv="refresh" content="1; url={0}
:
" />
<meta http-equiv="refresh" content="1; url={0}" />
</head>
</html>
"""
...
...
This diff is collapsed.
Click to expand it.
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