We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b47128 commit 26bbc0aCopy full SHA for 26bbc0a
generate_indexes.py
@@ -39,7 +39,7 @@ def main():
39
'<img class="logo" src="_static/sympylogo.png" alt="Logo"/>',
40
'</a></p>'
41
]
42
-
+ redirect = ' <meta http-equiv="refresh" content="0;URL=/latest/index.html" />'
43
contexti = 0
44
for linei, line in enumerate(lines):
45
# Did we match all we need to match?
@@ -55,6 +55,8 @@ def main():
55
56
# If we didn't find a match in the whole file, we need to stop and fix something.
57
if contexti < len(context):
58
+ if any(redirect in line for line in lines):
59
+ continue
60
print("Couldn't find where to insert Docs for other versions in {0}".format(releasedir))
61
sys.exit(0)
62
0 commit comments