From: Graham Percival Date: Sun, 20 Dec 2009 16:53:59 +0000 (+0000) Subject: Web build: links to stable docs working on website. X-Git-Tag: release/2.13.10-1~131 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=05dacdeb822d0a2d1d118d31849cb25c6288e96f;p=lilypond.git Web build: links to stable docs working on website. --- diff --git a/scripts/build/create-version-itexi.py b/scripts/build/create-version-itexi.py index 60eb107c27..1b71cd9f0e 100644 --- a/scripts/build/create-version-itexi.py +++ b/scripts/build/create-version-itexi.py @@ -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