diff --git a/_manual/create-manual-pages.py b/_manual/create-manual-pages.py index 5469d2b..da48627 100755 --- a/_manual/create-manual-pages.py +++ b/_manual/create-manual-pages.py @@ -23,8 +23,8 @@ manualPages = ( for page in manualPages: print(page) tmppage = "tmp_%s" % page - webpage = "http://www.wiki.linuxmusicians.com/doku.php?id=%s" % page - #os.system("wget %s -O %s" % (webpage, tmppage)) + webpage = "http://wiki.linuxaudio.org/wiki/%s" % page + os.system("wget %s -O %s" % (webpage, tmppage)) tmppageFd = open(tmppage, "r") tmppageRead = tmppageFd.read().strip() @@ -38,7 +38,7 @@ for page in manualPages: readPart3 = readPart2.split("", 1)[0].strip() # remove first part of the page, we want the title - readPart4 = readPart3.split("

", 1)[1].split("", 1)[0].strip() @@ -49,6 +49,9 @@ for page in manualPages: readPart6 = readPart5.replace("

", "") readPart7 = readPart6.replace("/lib/exe/", "http://www.wiki.linuxmusicians.com/lib/exe/") + # FIXME: this should happen on the wiki too + readPart7 = readPart7.replace("kxstudio.sourceforge.net", "kxstudio.linuxaudio.org") + # custom mods readPart8 = readPart7.replace("http://www.wiki.linuxmusicians.com/lib/exe/detail.php?id=jack_configuration&cache=cache&media=cadence-jack-settings.png", "/screenshots/cadence-jacksettings2.png") @@ -100,3 +103,6 @@ for page in manualPages: pageFd = open("Documentation:Manual:%s.php" % page, "w") pageFd.write(kxPageContent) pageFd.close() + + # removing temporary file + os.remove(tmppage)