mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
"todolist" has no content or arguments.
This commit is contained in:
parent
a00cabae8e
commit
b0b725d66b
@ -49,7 +49,7 @@ def todo_directive(name, arguments, options, content, lineno,
|
|||||||
def todolist_directive(name, arguments, options, content, lineno,
|
def todolist_directive(name, arguments, options, content, lineno,
|
||||||
content_offset, block_text, state, state_machine):
|
content_offset, block_text, state, state_machine):
|
||||||
# Simply insert an empty todolist node which will be replaced later
|
# Simply insert an empty todolist node which will be replaced later
|
||||||
# when process_todolist is called
|
# when process_todo_nodes is called
|
||||||
return [todolist('')]
|
return [todolist('')]
|
||||||
|
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ def setup(app):
|
|||||||
text=(visit_todo_node, depart_todo_node))
|
text=(visit_todo_node, depart_todo_node))
|
||||||
|
|
||||||
app.add_directive('todo', todo_directive, 1, (0, 0, 1))
|
app.add_directive('todo', todo_directive, 1, (0, 0, 1))
|
||||||
app.add_directive('todolist', todolist_directive, 1, (0, 0, 1))
|
app.add_directive('todolist', todolist_directive, 0, (0, 0, 0))
|
||||||
app.connect('doctree-resolved', process_todo_nodes)
|
app.connect('doctree-resolved', process_todo_nodes)
|
||||||
app.connect('env-purge-doc', purge_todos)
|
app.connect('env-purge-doc', purge_todos)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user