summaryrefslogtreecommitdiff
path: root/sphinx/apidoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-10-07 19:17:48 +0200
committerGeorg Brandl <georg@python.org>2011-10-07 19:17:48 +0200
commitbe5dac74a36fbd56b5ed7b84e3c3dc43edb10aad (patch)
treeddb157a67f2c090236a0ec85be22339b5769e2ba /sphinx/apidoc.py
parent38ebe67c4e934c9cfd663a0f2c2e21e8c84d29a5 (diff)
downloadsphinx-git-be5dac74a36fbd56b5ed7b84e3c3dc43edb10aad.tar.gz
Activate the viewcode extension in the automatically generated apidoc project.
Diffstat (limited to 'sphinx/apidoc.py')
-rw-r--r--sphinx/apidoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/apidoc.py b/sphinx/apidoc.py
index 5b6163ddd..0885dc456 100644
--- a/sphinx/apidoc.py
+++ b/sphinx/apidoc.py
@@ -301,6 +301,7 @@ Note: By default this script will not overwrite already created files.""")
master = 'index',
epub = True,
ext_autodoc = True,
+ ext_viewcode = True,
makefile = True,
batchfile = True,
mastertocmaxdepth = opts.maxdepth,