Commit c9c2ee2f authored by Stefan Behnel's avatar Stefan Behnel

Minor code cleanup.

parent 85431da6
...@@ -479,11 +479,14 @@ html_template = """ ...@@ -479,11 +479,14 @@ html_template = """
</html> </html>
""" """
list_redirects = [('reference/language_basics', 'userguide/language_basics')] list_redirects = [
('reference/language_basics', 'userguide/language_basics'),
]
def add_legacy_redirects(app, docname): def add_legacy_redirects(app, docname):
if app.builder.name == 'html': if app.builder.name != 'html':
return
for old_link, new_link in list_redirects: for old_link, new_link in list_redirects:
old_link = "src/" + old_link + ".html" old_link = "src/" + old_link + ".html"
new_link = "src/" + new_link + ".html" new_link = "src/" + new_link + ".html"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment