]> git.donarmstrong.com Git - lilypond.git/commitdiff
Web build: links to stable docs working on website.
authorGraham Percival <graham@percival-music.ca>
Sun, 20 Dec 2009 16:53:59 +0000 (16:53 +0000)
committerGraham Percival <graham@percival-music.ca>
Sun, 20 Dec 2009 16:53:59 +0000 (16:53 +0000)
scripts/build/create-version-itexi.py

index 60eb107c278d7e688c18141d719bfc1d341cae9b..1b71cd9f0e90ef70dbe580a68b081efad90c8d0f 100644 (file)
@@ -5,7 +5,15 @@ import sys
 import os
 import glob
 
-#print "create-version-itexi.py"
+## these links are relative from /~graham/web/
+#WEB_DOCLINK_STABLE = "../../doc/v2.12/Documentation/user/lilypond-"
+#WEB_DOCLINK_DEVEL = "../../doc/v2.13/Documentation/"
+
+# these links are relative from the v2.13 docs
+WEB_DOCLINK_STABLE = "../../../v2.12/Documentation/user/lilypond-"
+WEB_DOCLINK_DEVEL = "../../../v2.13/Documentation/"
+
+
 
 VERSION_STABLE = ""
 VERSION_DEVEL = ""
@@ -83,9 +91,9 @@ def make_ver_link(macroname, version, url, linktext):
        string = "@uref{"
        # TODO: generalize this
        if (version[:4] == '2.13'):
-               string += '../v2.13/'
+               string += WEB_DOCLINK_DEVEL
        if (version[:4] == '2.12'):
-               string += '../v2.12/'
+               string += WEB_DOCLINK_STABLE
        string += url
        string += ","
        string += linktext