summaryrefslogtreecommitdiff
path: root/doc/extdev/markupapi.rst
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-07 15:45:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-09-07 15:46:20 +0900
commit3eb56b1c6f164ec4557913c17cb720d2e17c33a6 (patch)
treed4bde124fb03a7a8e667638ae76d47d7af6f8474 /doc/extdev/markupapi.rst
parent5a02c6162b1c818eb8d0839badf34dee520b42a4 (diff)
downloadsphinx-git-3eb56b1c6f164ec4557913c17cb720d2e17c33a6.tar.gz
doc: Use AutodocReporter at example of nested_parse_with_titles()
In detail, please refer following thread: https://groups.google.com/forum/#!topic/sphinx-dev/l4fHrIJfwq4
Diffstat (limited to 'doc/extdev/markupapi.rst')
-rw-r--r--doc/extdev/markupapi.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/extdev/markupapi.rst b/doc/extdev/markupapi.rst
index 99a1ae9fb..533660c84 100644
--- a/doc/extdev/markupapi.rst
+++ b/doc/extdev/markupapi.rst
@@ -125,6 +125,8 @@ Both APIs parse the content into a given node. They are used like this::
node = docutils.nodes.paragraph()
# either
+ from sphinx.ext.autodoc import AutodocReporter
+ self.state.memo.reporter = AutodocReporter(self.result, self.state.memo.reporter) # override reporter to avoid errors from "include" directive
nested_parse_with_titles(self.state, self.result, node)
# or
self.state.nested_parse(self.result, 0, node)