diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-07 15:45:38 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-07 15:46:20 +0900 |
commit | 3eb56b1c6f164ec4557913c17cb720d2e17c33a6 (patch) | |
tree | d4bde124fb03a7a8e667638ae76d47d7af6f8474 /doc/extdev/markupapi.rst | |
parent | 5a02c6162b1c818eb8d0839badf34dee520b42a4 (diff) | |
download | sphinx-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.rst | 2 |
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) |