summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-22 21:02:50 +0000
committerGeorg Brandl <georg@python.org>2008-06-22 21:02:50 +0000
commitc1bedfc1055b303b067b4acd4e1194a370f8a39d (patch)
tree8823855d6b95da26be204c7ff22dbdfd10238e95 /doc/conf.py
parentabddd960932cec9270a00a881f562a604ba9bbf9 (diff)
downloadsphinx-git-c1bedfc1055b303b067b4acd4e1194a370f8a39d.tar.gz
Add general docstring processing support with a new event in autodoc.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/conf.py b/doc/conf.py
index bead46107..06dca15df 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -131,8 +131,6 @@ latex_logo = '_static/sphinx.png'
# Documents to append as an appendix to all manuals.
#latex_appendices = []
-automodule_skip_lines = 4
-
# Extension interface
# -------------------
@@ -180,6 +178,8 @@ def parse_event(env, sig, signode):
def setup(app):
+ from sphinx.ext.autodoc import cut_lines
+ app.connect('autodoc-process-docstring', cut_lines(4, what=['module']))
app.add_description_unit('directive', 'dir', 'pair: %s; directive', parse_directive)
app.add_description_unit('role', 'role', 'pair: %s; role', parse_role)
app.add_description_unit('confval', 'confval', 'pair: %s; configuration value')