class documentation
class BaseAdmonition(Directive): (source)
Known subclasses: docutils.parsers.rst.directives.admonitions.Admonition, docutils.parsers.rst.directives.admonitions.Attention, docutils.parsers.rst.directives.admonitions.Caution, docutils.parsers.rst.directives.admonitions.Danger, docutils.parsers.rst.directives.admonitions.Error, docutils.parsers.rst.directives.admonitions.Hint, docutils.parsers.rst.directives.admonitions.Important, docutils.parsers.rst.directives.admonitions.Note, docutils.parsers.rst.directives.admonitions.Tip, docutils.parsers.rst.directives.admonitions.Warning
Constructor: BaseAdmonition(name, arguments, options, content, ...)
Undocumented
| Method | run |
Undocumented |
| Class Variable | final |
May the final argument contain whitespace? |
| Class Variable | has |
May the directive have content? |
| Class Variable | node |
Subclasses must set this to the appropriate admonition node class. |
| Class Variable | option |
Mapping of option names to validator functions. |
Inherited from Directive:
| Method | __init__ |
Undocumented |
| Method | add |
Append self.options['name'] to node['names'] if it exists. |
| Method | assert |
Throw an ERROR-level DirectiveError if the directive doesn't have contents. |
| Method | debug |
Undocumented |
| Method | directive |
Return a DirectiveError suitable for being thrown as an exception. |
| Method | error |
Undocumented |
| Method | info |
Undocumented |
| Method | severe |
Undocumented |
| Method | warning |
Undocumented |
| Class Variable | optional |
Number of optional arguments after the required arguments. |
| Class Variable | required |
Number of required directive arguments. |
| Instance Variable | arguments |
Undocumented |
| Instance Variable | block |
Undocumented |
| Instance Variable | content |
Undocumented |
| Instance Variable | content |
Undocumented |
| Instance Variable | lineno |
Undocumented |
| Instance Variable | name |
Undocumented |
| Instance Variable | options |
Undocumented |
| Instance Variable | state |
Undocumented |
| Instance Variable | state |
Undocumented |