[Libreoffice-commits] help.git: Branch 'libreoffice-4-0' - help-to-wiki.py to-wiki/getalltitles.py
Andras Timar
atimar at suse.com
Mon Jun 3 01:36:55 PDT 2013
help-to-wiki.py | 4 ++--
to-wiki/getalltitles.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 513b459ef0d3c6b25ae816b78a138d7b200ea652
Author: Andras Timar <atimar at suse.com>
Date: Mon Jun 3 09:39:36 2013 +0200
Hardcode 4.0 version - it will be available as help.libreoffice.org/4.0
Change-Id: I63fa0615e20debe924404f66d65d86ad41d2d2e1
diff --git a/help-to-wiki.py b/help-to-wiki.py
index 19d58ed..42aa072 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 8db9bcb..8ec6a89 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('__', '_')
More information about the Libreoffice-commits
mailing list