diff options
| author | Georg Brandl <georg@python.org> | 2010-01-18 00:38:25 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-18 00:38:25 +0100 |
| commit | a4b7f14d26d330a92eb12ef9507ee3668795eee9 (patch) | |
| tree | 638eae8670ed4a31e0fa42eb3473d6a0e83efd70 /sphinx/ext/viewcode.py | |
| parent | 4e3d20fd5a25a8a0b07fe79df63bf847884b94b5 (diff) | |
| download | sphinx-a4b7f14d26d330a92eb12ef9507ee3668795eee9.tar.gz | |
Only output one status for all module code pages.
Diffstat (limited to 'sphinx/ext/viewcode.py')
| -rw-r--r-- | sphinx/ext/viewcode.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index 11ab4b11..ac2a957f 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -84,6 +84,9 @@ def collect_pages(app): modnames = set(env._viewcode_modules) + app.builder.info(' (%d module code pages)' % + len(env._viewcode_modules), nonl=1) + for modname, (code, tags, used) in env._viewcode_modules.iteritems(): # construct a page name for the highlighted source pagename = '_modules/' + modname.replace('.', '/') @@ -126,7 +129,6 @@ def collect_pages(app): 'body': _('<h1>Source code for %s</h1>') % modname + \ '\n'.join(lines) } - app.builder.info(' '+pagename, nonl=1) yield (pagename, context, 'page.html') if not modnames: |
