[PATCH 5/5] Hardcode 3.4 version - it will be available as help.libreoffice.org/3.4
Jan Holesovsky
kendy at suse.cz
Thu May 19 13:06:29 PDT 2011
---
helpcontent2/help-to-wiki.py | 3 ++-
helpcontent2/to-wiki/getalltitles.py | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py
index d25cb99..7bc3029 100755
--- a/helpcontent2/help-to-wiki.py
+++ b/helpcontent2/help-to-wiki.py
@@ -41,13 +41,14 @@ def create_wiki_dirs():
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
diff --git a/helpcontent2/to-wiki/getalltitles.py b/helpcontent2/to-wiki/getalltitles.py
index 18a2dc0..6e939d2 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.4/' + module + '/' + wiki_text(title)
title = title.replace(' ', '_')
title = title.replace('___', '_')
title = title.replace('__', '_')
--
1.7.3.1
--=-V1EnKp/ZAFsH3LYVmbTj--
More information about the LibreOffice
mailing list