From: John Mandereau <john.mandereau@gmail.com>
Date: Tue, 6 Feb 2007 22:20:34 +0000 (+0100)
Subject: Add blacklist of non copied HTML files in translated offline docs
X-Git-Tag: release/2.11.18-1~5^2~6^2^2~9
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fdef35931cfdbf0530a76f3da861c443a16f1be1;p=lilypond.git

Add blacklist of non copied HTML files in translated offline docs
---

diff --git a/buildscripts/add_html_footer.py b/buildscripts/add_html_footer.py
index 7f7a370729..7c6375588a 100644
--- a/buildscripts/add_html_footer.py
+++ b/buildscripts/add_html_footer.py
@@ -9,6 +9,19 @@ import time
 
 import langdefs
 
+# This is to try to make the docball not too big with almost duplicate files
+# see process_links()
+non_copied_pages = ['Documentation/user/out-www/lilypond-big-page',
+                    'Documentation/user/out-www/lilypond-internals-big-page',
+                    'Documentation/user/out-www/music-glossary-big-page',
+                    'out-www/examples',
+                    'Documentation/topdocs/out-www/NEWS',
+                    'Documentation/topdocs/out-www/INSTALL',
+                    'Documentation/bibliography/out-www/index',
+                    'Documentation/out-www/THANKS',
+                    'Documentation/out-www/DEDICATION',
+                    'Documentation/topdocs/ou-www/AUTHORS']
+
 header = r"""
 """
 
@@ -125,9 +138,8 @@ def find_translations (prefix, lang_ext):
         if lang_ext != e:
             if e in pages_dict[prefix]:
                 available.append (l)
-            elif lang_ext == '' and l.enabled and \
-                     ('lilypond/' in prefix or 'lilypond-internals/' in prefix or 'music-glossary/' in prefix or 'input/' in prefix):
-                # English version of missing translated pages in the splitted docs will be written
+            elif lang_ext == '' and l.enabled and not prefix in non_copied_pages:
+                # English version of missing translated pages will be written
                 missing.append (e)
     return available, missing