summaryrefslogtreecommitdiff
path: root/scripts/build/www_post.py
diff options
context:
space:
mode:
authorJulien Rioux <jrioux@physics.utoronto.ca>2011-10-17 13:34:50 -0400
committerGraham Percival <graham@percival-music.ca>2011-10-25 01:13:04 +0100
commitc18a564a424c0469ef735c6866a2d88e4d85481d (patch)
treecc7212992cc803606f811e5c11d726eb85ff916b /scripts/build/www_post.py
parent7a5ed5ba18cd1b11b9468e6e6d45ab1c8987923a (diff)
Fix the 404 on contributor-big-page and contributor/website-build (issue 1974).
They were actually excluded in the www_post processing stage because they contain the string 'UNTRANSLATED NODE: IGNORE ME', which is part of the actual documentation.
Diffstat (limited to 'scripts/build/www_post.py')
-rw-r--r--scripts/build/www_post.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py
index 17af63109e..fec7f0e20c 100644
--- a/scripts/build/www_post.py
+++ b/scripts/build/www_post.py
@@ -47,9 +47,15 @@ dirs, symlinks, files = mirrortree.walk_tree (
# actual mirrorring stuff
html_files = []
hardlinked_files = []
+# These whitelisted files actually do contain the string
+# 'UNTRANSLATED NODE: IGNORE ME' for documentation purposes.
+whitelisted_files = [
+ 'Documentation/out-www/contributor-big-page.html',
+ 'Documentation/out-www/contributor/website-build.html',
+]
for f in files:
if f.endswith ('.html'):
- if not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read ():
+ if f in whitelisted_files or not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read ():
html_files.append (f)
else:
hardlinked_files.append (f)