Added an `only` directive that can selectively include text

based on enabled "tags".  Tags can be given on the command
line.  Also, the current builder output format (e.g. "html" or
"latex") is always a defined tag.
This commit is contained in:
Georg Brandl
2009-02-19 21:56:34 +01:00
parent 8e4ef0d585
commit 4c81b055c8
20 changed files with 242 additions and 27 deletions

View File

@@ -47,6 +47,8 @@ value_from_conf_py = 84
coverage_c_path = ['special/*.h']
coverage_c_regexes = {'cfunction': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
# modify tags from conf.py
tags.add('confpytag')
from sphinx import addnodes