From fdef35931cfdbf0530a76f3da861c443a16f1be1 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Tue, 6 Feb 2007 23:20:34 +0100 Subject: [PATCH] Add blacklist of non copied HTML files in translated offline docs --- buildscripts/add_html_footer.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) 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 -- 2.39.2