X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fadd_html_footer.py;h=0ef42e1833bd6974af1cf967ac4abf4150597535;hb=ba8fb0e35985c743d194b9bc7dac2c0fb8ede848;hp=898d1a06e47c835151d7f737c4f361d90a6d65db;hpb=b80683cc94b0c22bbe3fccb94a9b2e23787fd10b;p=lilypond.git diff --git a/buildscripts/add_html_footer.py b/buildscripts/add_html_footer.py index 898d1a06e4..0ef42e1833 100644 --- a/buildscripts/add_html_footer.py +++ b/buildscripts/add_html_footer.py @@ -43,10 +43,11 @@ footer = ''' ''' footer_name_version = _doc ('This page is for %(package_name)s-%(package_version)s (%(branch_str)s).') footer_report_errors = _doc ('Report errors to %(mail_address)s.') -footer_suggest_docs = _doc ('Your suggestions for the documentation are welcome.') +# ugh, must not have "_doc" in strings because it is naively replaced with "_" in hacked gettext process +footer_suggest_docs = _doc ('Your suggestions for the documentation are welcome.') mail_address = 'http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs' -suggest_docs_url = 'http://lilypond.org/web/devel/participating/documentation-adding' +suggest_Docs_url = 'http://lilypond.org/web/devel/participating/documentation-adding' header_tag = '' footer_tag = '' @@ -86,14 +87,14 @@ def build_pages_dict (filelist): def source_links_replace (m, source_val): return 'href="' + os.path.join (source_val, m.group (1)) + '"' -splitted_docs_re = re.compile ('Documentation/user/out-www/(lilypond|music-glossary)/') +splitted_docs_re = re.compile ('Documentation/user/out-www/(lilypond|music-glossary|lilypond-program|lilypond-learning)/') # On systems without symlinks (e.g. Windows), docs are not very usable # Get rid of symlinks references here # Get rid of symlinks in GNUmakefile.in (local-WWW-post) def replace_symlinks_urls (s, prefix): if splitted_docs_re.match (prefix): - s = re.sub ('(href|src)="(lily-.*?|.*?-flat-.*?)"', '\\1="../\\2"', s) + s = re.sub ('(href|src)="(lily-.*?|.*?-flat-.*?|context-example.*?)"', '\\1="../\\2"', s) source_path = os.path.join (os.path.dirname (prefix), 'source') if not os.path.islink (source_path): return s