From e12188443ed992f223f0d7fd45965003de94588f Mon Sep 17 00:00:00 2001 From: Phil Holmes Date: Fri, 16 Sep 2011 12:35:33 +0100 Subject: [PATCH] Fixes missing images in web-big --- Documentation/macros.itexi | 4 ++-- python/auxiliar/postprocess_html.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/macros.itexi b/Documentation/macros.itexi index 6e567a56d5..31f5c59a8c 100644 --- a/Documentation/macros.itexi +++ b/Documentation/macros.itexi @@ -730,8 +730,8 @@ For LilyPond version @version{} @macro exampleImage{IMAGE-FILE} @html
- - \IMAGE-FILE\ + + \IMAGE-FILE\

(click to enlarge) diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index de3848537c..494b2cf503 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -105,6 +105,7 @@ def source_links_replace (m, source_val): split_docs_re = re.compile('(Documentation/out-www/(automated-engraving|essay|notation|changes|extending|music-glossary|usage|web|learning|snippets|contributor))/') lily_snippets_re = re.compile ('(href|src)="([0-9a-f]{2}/lily-.*?)"') pictures_re = re.compile ('src="(pictures/.*?)"') +lyexamples_re = re.compile ('="web/(ly-examples/.*?)"') docindex_link_re = re.compile (r'href="index.html"') manuals_page_link_re = re.compile (r'href="((?:\.\./)+)Documentation/web/manuals') @@ -117,6 +118,7 @@ def hack_urls (s, prefix, target, is_development_branch): if split_docs_re.match (prefix): s = lily_snippets_re.sub ('\\1="../\\2"', s) s = pictures_re.sub ('src="../\\1"', s) + s = lyexamples_re.sub ('="\\1"', s) # we also need to replace in the lsr, which is already processed above! if 'input/' in prefix or 'Documentation/topdocs' in prefix or \ -- 2.39.2