| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | found of the html file (including stable if its in the latest version.) | |
| 24 | 24 | ||
| 25 | 25 | Third, the script adds a new div to the top of all the old webpages with | |
| 26 | - tag ``olddocs-message`` to warn users that the page is obsolete. | ||
| 26 | + id ``unreleased-message`` to warn users that the page is obsolete. | ||
| 27 | 27 | ||
| 28 | 28 | This script takes a while, and is destructive, so should probably be run on a | |
| 29 | 29 | branch and pushed as a PR so it can easily be reverted. | |
@@ -179,8 +179,8 @@ def update_canonical(fullname, last, newest): | |||
| 179 | 179 | else: | |
| 180 | 180 | new = warn_banner_old.format(version=fullname.parts[0]) | |
| 181 | 181 | fout.write(new.encode("utf-8")) | |
| 182 | - if b'<div id="olddocs-message">' not in line: | ||
| 183 | - # write the line out if it wasn't an olddocs-message: | ||
| 182 | + if b'<div id="unreleased-message">' not in line: | ||
| 183 | + # Write the line out if it wasn't unreleased-message: | ||
| 184 | 184 | fout.write(line) | |
| 185 | 185 | ||
| 186 | 186 | else: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments