diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-15 18:33:41 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-15 18:33:41 +0900 |
commit | 8090e9040f9ed62ffb31614ed9df8010977c20a8 (patch) | |
tree | b1870b6c19f1b459c9e1341495d6d54a9ea6fa59 /doc/development/tutorials/examples/todo.py | |
parent | 8f45bee2a1ee180ced83dfe7eda138c51117d5d5 (diff) | |
download | sphinx-git-8090e9040f9ed62ffb31614ed9df8010977c20a8.tar.gz |
Fix #7299: doc: Fix TODO tutorial
Diffstat (limited to 'doc/development/tutorials/examples/todo.py')
-rw-r--r-- | doc/development/tutorials/examples/todo.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/development/tutorials/examples/todo.py b/doc/development/tutorials/examples/todo.py index 6ba39944f..7eee534d0 100644 --- a/doc/development/tutorials/examples/todo.py +++ b/doc/development/tutorials/examples/todo.py @@ -70,6 +70,9 @@ def process_todo_nodes(app, doctree, fromdocname): # Augment each todo with a backlink to the original location. env = app.builder.env + if not hasattr(env, 'todo_all_todos'): + env.todo_all_todos = [] + for node in doctree.traverse(todolist): if not app.config.todo_include_todos: node.replace_self([]) |