summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-06-03 09:39:36 +0200
committerAndras Timar <atimar@suse.com>2013-06-03 09:39:36 +0200
commit513b459ef0d3c6b25ae816b78a138d7b200ea652 (patch)
tree06a4bc98b49721da0ad9b5c9b87df182705b93ba
parentd8f46055f562917e857c4395601138f0515e71d0 (diff)
Hardcode 4.0 version - it will be available as help.libreoffice.org/4.0
Change-Id: I63fa0615e20debe924404f66d65d86ad41d2d2e1
-rwxr-xr-xhelp-to-wiki.py4
-rwxr-xr-xto-wiki/getalltitles.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/help-to-wiki.py b/help-to-wiki.py
index 19d58ed56..42aa072ad 100755
--- a/help-to-wiki.py
+++ b/help-to-wiki.py
@@ -49,14 +49,14 @@ def create_wiki_dirs():
]
try:
- os.mkdir( "wiki" )
+ os.mkdir( "wiki/4.0" )
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/4.0" + i )
except:
pass
diff --git a/to-wiki/getalltitles.py b/to-wiki/getalltitles.py
index 8db9bcb45..8ec6a8993 100755
--- a/to-wiki/getalltitles.py
+++ b/to-wiki/getalltitles.py
@@ -130,7 +130,7 @@ def parsexhp(filename):
title = tp.get_title()
if len(title) > 0:
readable_title = readable_text(title)
- title = module + '/' + wiki_text(title)
+ title = '4.0' + module + '/' + wiki_text(title)
title = title.replace(' ', '_')
title = title.replace('___', '_')
title = title.replace('__', '_')