[Python-checkins] r50801 - sandbox/trunk/seealso/convert-python-faqs.py
andrew.kuchling
python-checkins at python.org
Mon Jul 24 15:38:09 CEST 2006
Author: andrew.kuchling
Date: Mon Jul 24 15:38:09 2006
New Revision: 50801
Modified:
sandbox/trunk/seealso/convert-python-faqs.py
Log:
Improve page title for questions (not tested yet)
Modified: sandbox/trunk/seealso/convert-python-faqs.py
==============================================================================
--- sandbox/trunk/seealso/convert-python-faqs.py (original)
+++ sandbox/trunk/seealso/convert-python-faqs.py Mon Jul 24 15:38:09 2006
@@ -95,6 +95,7 @@
f.close()
# Write .yml files
+ page_title = '%s FAQ: %s' % (category.capitalize(), title)
f = open(os.path.join(qdir, 'index.yml'), 'w')
f.write("""--- !fragment
template: index.html
@@ -104,7 +105,7 @@
local:
title: %s
content: !fragment content.yml
- """ % yaml_escape(title))
+ """ % yaml_escape(page_title))
f.close()
f = open(os.path.join(qdir, 'content.yml'), 'w')
More information about the Python-checkins
mailing list