]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fixes missing images in web-big
authorPhil Holmes <mail@philholmes.net>
Fri, 16 Sep 2011 11:35:33 +0000 (12:35 +0100)
committerPhil Holmes <mail@philholmes.net>
Thu, 22 Sep 2011 14:39:14 +0000 (15:39 +0100)
Documentation/macros.itexi
python/auxiliar/postprocess_html.py

index 6e567a56d555a52f71e94cfac997ba50c2dd07fb..31f5c59a8cf33af8a99169a58cb500937ce01cd9 100644 (file)
@@ -730,8 +730,8 @@ For LilyPond version @version{}
 @macro exampleImage{IMAGE-FILE}
 @html
 <div class="float-center">
-  <a class="clickable" href="ly-examples/\IMAGE-FILE\.png">
-    <img src="ly-examples/\IMAGE-FILE\-small.png" alt="\IMAGE-FILE\">
+  <a class="clickable" href="web/ly-examples/\IMAGE-FILE\.png">
+    <img src="web/ly-examples/\IMAGE-FILE\-small.png" alt="\IMAGE-FILE\">
   </a>
   <p style="text-align: center">
     (click to enlarge)
index de3848537cb2f466fd8816414bc6519147c30ea9..494b2cf503d5d4038ce3f134737dcbde3485c2f5 100644 (file)
@@ -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 \