Merge pull request #7313 from tk0miya/7299_fix_todo_tutorial

Fix #7299: doc: Fix TODO tutorial
This commit is contained in:
Takeshi KOMIYA
2020-03-16 22:45:23 +09:00
committed by GitHub

View File

@@ -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([])