summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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('__', '_')