summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-05-19 22:06:29 +0200
committerPetr Mladek <pmladek@suse.cz>2012-02-10 17:55:11 +0100
commitc481feed88cb257065e56cb5ff160342cc9c7654 (patch)
tree82c38805f94b366c644c36810318180b21d65afd
parent2e26e7a87840a096a6f3c47c23670717a2e5cb12 (diff)
Hardcode 3.4 version - it will be available as help.libreoffice.org/3.4libreoffice-3-4
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 d25cb99847..7bc3029f2c 100755
--- a/helpcontent2/help-to-wiki.py
+++ b/helpcontent2/help-to-wiki.py
@@ -38,19 +38,20 @@ def create_wiki_dirs():
"sbasic",
"sdatabase"
]
try:
os.mkdir( "wiki" )
+ os.mkdir( "wiki/3.4" )
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.4/" + i )
except:
pass
# Langs to handle
# [16:26:45] <kendy> sophi, timar: Obviously, I am testing with Czech ;-)
# [16:27:05] <timar> kendy: HUngarian :)
diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py
index 18a2dc0828..6e939d2045 100755
--- a/helpcontent2/to-wiki/getalltitles.py
+++ b/helpcontent2/to-wiki/getalltitles.py
@@ -120,13 +120,13 @@ def parsexhp(filename):
file.close()
return
file.close()
title = tp.get_title()
if len(title) > 0:
readable_title = readable_text(title)
- title = module + '/' + wiki_text(title)
+ title = '3.4/' + module + '/' + wiki_text(title)
title = title.replace(' ', '_')
title = title.replace('___', '_')
title = title.replace('__', '_')
title = title.strip('_')
title = make_unique(title)
alltitles.append(title)