diff options
author | Georg Brandl <georg@python.org> | 2008-05-24 18:03:56 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-24 18:03:56 +0000 |
commit | 02b529bf52310bc18d0a4e5b09dabf180c1079f8 (patch) | |
tree | e0c622c76a168f22b7517c75ab88d258c24a3e5c /sphinx/htmlhelp.py | |
parent | 316d9e3e887aff93fd822bcf119c34abe4321476 (diff) | |
download | sphinx-git-02b529bf52310bc18d0a4e5b09dabf180c1079f8.tar.gz |
Add html_short_title and html_show_sphinx config values.
Diffstat (limited to 'sphinx/htmlhelp.py')
-rw-r--r-- | sphinx/htmlhelp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/htmlhelp.py b/sphinx/htmlhelp.py index 327b59a46..957821c1c 100644 --- a/sphinx/htmlhelp.py +++ b/sphinx/htmlhelp.py @@ -129,9 +129,8 @@ def build_hhx(builder, outdir, outname): builder.info('writing project file...') f = open(path.join(outdir, outname+'.hhp'), 'w') try: - title = builder.config.html_title or \ - '%s v%s documentation' % (builder.config.project, builder.config.release) - f.write(project_template % {'outname': outname, 'title': title, + f.write(project_template % {'outname': outname, + 'title': builder.config.html_title, 'version': builder.config.version, 'project': builder.config.project}) if not outdir.endswith(os.sep): @@ -150,7 +149,8 @@ def build_hhx(builder, outdir, outname): try: f.write(contents_header) # special books - f.write('<LI> ' + object_sitemap % ('Main page', 'index.html')) + f.write('<LI> ' + object_sitemap % (builder.config.html_short_title, + 'index.html')) if builder.config.html_use_modindex: f.write('<LI> ' + object_sitemap % ('Global Module Index', 'modindex.html')) # the TOC |