sphinx.ext.todo – Prise en charge des éléments todo¶
Auteur du module : Daniel Bültmann
Ajouté dans la version 0.5.
Il existe deux directives supplémentaires quand vous utilisez cette extension :
- .. todo::¶
Utilisez cette directive comme, par exemple,
note.Il n’apparaîtra dans la sortie que si
todo_include_todosestTrue.Ajouté dans la version 1.3.2: This directive supports an
classoption that determines the class attribute for HTML output. If not given, the class defaults toadmonition-todo.
- .. todolist::¶
This directive is replaced by a list of all todo directives in the whole documentation, if
todo_include_todosisTrue.
These can be configured as seen below.
Configuration¶
- todo_include_todos¶
- Type:
bool- Défaut:
False
If this is
True,todoandtodolistproduce output, else they produce nothing.
- todo_emit_warnings¶
- Type:
bool- Défaut:
False
If this is
True,todoemits a warning for each TODO entries.Ajouté dans la version 1.5.
- todo_link_only¶
- Type:
bool- Défaut:
False
If this is
True,todolistproduce output without file path and line.Ajouté dans la version 1.4.
autodoc provides the following an additional event:
- todo-defined(app, node)¶
Ajouté dans la version 1.5.
Emitted when a todo is defined. node is the defined
sphinx.ext.todo.todo_nodenode.