mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use `env.events in sphinx.ext.todo`
This commit is contained in:
@@ -97,7 +97,7 @@ class TodoDomain(Domain):
|
||||
document: nodes.document) -> None:
|
||||
todos = self.todos.setdefault(docname, [])
|
||||
for todo in document.findall(todo_node):
|
||||
env.app.emit('todo-defined', todo)
|
||||
env.events.emit('todo-defined', todo)
|
||||
todos.append(todo)
|
||||
|
||||
if env.config.todo_emit_warnings:
|
||||
|
||||
Reference in New Issue
Block a user