summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-06-28 11:46:29 +0200
committerJan Holesovsky <kendy@suse.cz>2012-06-28 11:49:53 +0200
commitcb0b024d6c5c411a16d09c944452e3e283bb326b (patch)
treec65ddc50abe94125cbb7e3805f570bd054677c40
parent5a905683ea3d3e2d6f1da33a6a8ba1ee418fe4a4 (diff)
Hardcode 3.5 version - it will be available as help.libreoffice.org/3.5libreoffice-3-5
Signed-off-by: Petr Mladek <pmladek@suse.cz>
-rwxr-xr-xhelpcontent2/help-to-wiki.py3
-rwxr-xr-xhelpcontent2/to-wiki/getalltitles.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py
index 90b30982d..cc6709832 100755
--- a/helpcontent2/help-to-wiki.py
+++ b/helpcontent2/help-to-wiki.py
@@ -43,13 +43,14 @@ def create_wiki_dirs():
try:
os.mkdir( "wiki" )
+ os.mkdir( "wiki/3.5" )
except:
sys.stdout.write( "wiki already generated - the wiki/ subdir exists\n" )
sys.exit( 1 )
for i in dirs:
try:
- os.mkdir( "wiki/" + i )
+ os.mkdir( "wiki/3.5/" + i )
except:
pass
diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py
index 18a2dc082..b53cd17bb 100755
--- a/helpcontent2/to-wiki/getalltitles.py
+++ b/helpcontent2/to-wiki/getalltitles.py
@@ -123,7 +123,7 @@ def parsexhp(filename):
title = tp.get_title()
if len(title) > 0:
readable_title = readable_text(title)
- title = module + '/' + wiki_text(title)
+ title = '3.5/' + module + '/' + wiki_text(title)
title = title.replace(' ', '_')
title = title.replace('___', '_')
title = title.replace('__', '_')