Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f144a8

Browse files
committed
DOC: add a bit of docs
1 parent 1e9977f commit 2f144a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_websiteutils/make_redirects_links.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import shutil
1111

1212
"""
13-
This script does two things that improve the website organization.
13+
This script does three things that improve the website organization.
1414
1515
First, we used to host in the root of the webpage, but have now moved to
1616
``/stable/``. We do not want obsolete links to link to nothing (or that has
@@ -21,6 +21,9 @@
2121
Second, it changes the canonical link in each html file to the newest version
2222
found of the html file (including stable if its in the latest version.)
2323
24+
Third, the script adds a new div to the top of all the old webpages with
25+
tag ``olddocs-message`` to warn users that the page is obsolete.
26+
2427
This script takes a while, and is destructive, so should probably be run on a
2528
branch and pushed as a PR so it can easily be reverted.
2629
"""

0 commit comments

Comments
 (0)