summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-17 17:02:46 +0100
committerGeorg Brandl <georg@python.org>2010-01-17 17:02:46 +0100
commit86bd92b483e75356f1334a5ee14d05a50608ceed (patch)
tree23c8d4f43a1308d7323a1775112e05d082df9c6f /sphinx
parente45aa2a6824c004b138e19d0c64e593fc5a4197a (diff)
downloadsphinx-86bd92b483e75356f1334a5ee14d05a50608ceed.tar.gz
Add viewcode to quickstart.
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/quickstart.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py
index baad7894..bffa47ea 100644
--- a/sphinx/quickstart.py
+++ b/sphinx/quickstart.py
@@ -718,6 +718,8 @@ Please indicate if you want to use one of the following Sphinx extensions:'''
pngmath has been deselected.'''
do_prompt(d, 'ext_ifconfig', 'ifconfig: conditional inclusion of '
'content based on config values (y/N)', 'n', boolean)
+ do_prompt(d, 'ext_viewcode', 'viewcode: include links to the source code '
+ 'of documented Python objects (y/N)', 'n', boolean)
print '''
A Makefile and a Windows command file can be generated for you so that you
only have to run e.g. `make html' instead of invoking sphinx-build
@@ -732,7 +734,7 @@ directly.'''
d['extensions'] = ', '.join(
repr('sphinx.ext.' + name)
for name in ('autodoc', 'doctest', 'intersphinx', 'todo', 'coverage',
- 'pngmath', 'jsmath', 'ifconfig')
+ 'pngmath', 'jsmath', 'ifconfig', 'viewcode')
if d['ext_' + name])
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
d['author_texescaped'] = unicode(d['author']).\