diff abcfield.py @ 943:d6e2a281cceb build-default-344

Change web page layout. Put tune contents under 'tunes/<name>' or 'tunes-<instrument>/<name>'. That way they won't move if the tune gets moved between Bookes. For now I have not attempted to redirect old URLs.
author Jim Hague <jim.hague@acm.org>
date Mon, 05 Aug 2019 23:25:28 +0100
parents 6bd946700312
children fc2b75f6c284
line wrap: on
line diff
--- a/abcfield.py	Mon Aug 05 23:22:04 2019 +0100
+++ b/abcfield.py	Mon Aug 05 23:25:28 2019 +0100
@@ -175,7 +175,7 @@
     if latex:
         res = re.sub(r'\\href{(.*?).abc}', r'\\hyperlink{\1}', res)
     else:
-        res = re.sub(r'href="(.*?).abc"', r'href="\1.html"', res)
+        res = re.sub(r'href="(.*?).abc"', r'href="../\1/index.html"', res)
     return res.strip()
 
 # Implement a custom Markdown shorthand for referencing ABC files.