summaryrefslogtreecommitdiff
path: root/sphinx/ext/viewcode.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-14 21:33:54 +0100
committerGeorg Brandl <georg@python.org>2010-01-14 21:33:54 +0100
commit125ba24fced644c2d5189f1265a714b22ab1abfa (patch)
treed7f20d2ab7a0516e77265ab374c9936217b9b52d /sphinx/ext/viewcode.py
parent2fff5a30f797d70ed11b649d65ee51c9e9b31dc6 (diff)
downloadsphinx-125ba24fced644c2d5189f1265a714b22ab1abfa.tar.gz
Use <h1>, otherwise themes will break.
Diffstat (limited to 'sphinx/ext/viewcode.py')
-rw-r--r--sphinx/ext/viewcode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py
index 5aa87069..e1270875 100644
--- a/sphinx/ext/viewcode.py
+++ b/sphinx/ext/viewcode.py
@@ -122,7 +122,7 @@ def collect_pages(app):
context = {
'parents': parents,
'title': modname,
- 'body': _('<h2>Source code for %s</h2>') % modname + \
+ 'body': _('<h1>Source code for %s</h1>') % modname + \
'\n'.join(lines)
}
app.builder.info(' '+pagename, nonl=1)
@@ -151,7 +151,7 @@ def collect_pages(app):
html.append('</ul>' * (len(stack) - 1))
context = {
'title': _('Overview: module code'),
- 'body': _('<h2>All modules for which code is available</h2>') + \
+ 'body': _('<h1>All modules for which code is available</h1>') + \
''.join(html),
}