mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7299: doc: Fix TODO tutorial
This commit is contained in:
parent
8f45bee2a1
commit
8090e9040f
@ -70,6 +70,9 @@ def process_todo_nodes(app, doctree, fromdocname):
|
|||||||
# Augment each todo with a backlink to the original location.
|
# Augment each todo with a backlink to the original location.
|
||||||
env = app.builder.env
|
env = app.builder.env
|
||||||
|
|
||||||
|
if not hasattr(env, 'todo_all_todos'):
|
||||||
|
env.todo_all_todos = []
|
||||||
|
|
||||||
for node in doctree.traverse(todolist):
|
for node in doctree.traverse(todolist):
|
||||||
if not app.config.todo_include_todos:
|
if not app.config.todo_include_todos:
|
||||||
node.replace_self([])
|
node.replace_self([])
|
||||||
|
Loading…
Reference in New Issue
Block a user