]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/create-version-itexi.py
Web build: oops, fix url generation for .html files.
[lilypond.git] / scripts / build / create-version-itexi.py
index 287b222da5e37d742c66058d99aced03c7cc0bdc..5ca06a74ba3a4d302cea8e9582906fe530fb2bd0 100644 (file)
@@ -127,16 +127,22 @@ def translateNameToUrl(manual, version):
     if (ver_minor == '2.12'):
         if (manual=='learning'):
             return url+'user/lilypond-learning'
-        if (manual=='internals'):
+        elif (manual=='internals'):
             return url+'user/lilypond-internals'
-        if (manual=='notation'):
+        elif (manual=='notation'):
             return url+'user/lilypond'
-        if (manual=='usage'):
+        elif (manual=='usage'):
             return url+'user/lilypond-program'
-        if (manual=='snippets'):
+        elif (manual=='snippets'):
             return url+'../input/lsr/lilypond-snippets'
+        elif (manual=='changes'):
+            return url+'topdocs/NEWS.html'
         elif (manual=='music-glossary'):
             return url+'user/music-glossary'
+        elif (manual=='essay'):
+            return url+'user/lilypond-learning/Background.html'
+        elif (manual=='extending'):
+            return url+'user/music/Interfaces-for-programmers.html'
         else:
             return ''
 
@@ -150,6 +156,7 @@ def make_manual_links(name, version):
             mshort = m.capitalize()
         url = translateNameToUrl(m, version)
 
+        print url
         if (url == ''):
             # can't have a comma here due to texinfo
             make_ver_link("manual"+name+mshort+'Pdf',
@@ -161,6 +168,9 @@ def make_manual_links(name, version):
             make_ver_link("manual"+name+mshort+'Big',
                 version, "http://lilypond.org",
                 mshort+" (did not exist in 2.12)")
+            make_ver_link("manual"+name+mshort+'SplitNoName',
+                version, "http://lilypond.org",
+                mshort+" (did not exist in 2.12)")
             continue
         make_ver_link("manual"+name+mshort+'Pdf',
                   version,
@@ -174,6 +184,18 @@ def make_manual_links(name, version):
                   version,
                   url + '-big-page.html',
                   manual.capitalize() + ' (big HTML)')
+       # this is stupid and I shouldn't have bothered trying
+       # to support the 2.12 docs and it will be deleted once
+       # 2.14 is out and the website won't be visible to users
+        # until 2.14 is out.  -gp
+        if (url.endswith('.html')):
+            newurl = url
+        else:
+            newurl = url + '/index.html'
+        make_ver_link("manual"+name+mshort+'SplitNoName',
+                  version,
+                  newurl,
+                  manual.capitalize())
 
 
 print "@c ************************ Version numbers ************"