mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 22:50:22 -05:00
Merge pull request #7313 from tk0miya/7299_fix_todo_tutorial
Fix #7299: doc: Fix TODO tutorial
This commit is contained in:
1 file changed
+3
@@ -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([])
|
||||
|
||||
Reference in new issue
Block a user