sphinx_uml package#
Subpackages#
Submodules#
Module contents#
- class sphinx_uml.UMLGenerateDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]#
Bases:
SphinxDirectiveUML directive to generate a pyreverse diagram
- final_argument_whitespace = True#
May the final argument contain whitespace?
- has_content = False#
May the directive have content?
- html_root_dir() Path[source]#
Crafts the HTML prefix to move from the current HTML to the HTML root directory.
- Returns:
The corresponding relative
Pathinstance.
Example
Assume that:
the documentation is built in:
"~/git/sphinx-uml/docs";the current document is;
"~/git/sphinx-uml/docs/users/examples.rst";
Then, the returned value is
"../". As the HTML hierarchy follows the RST hierarchy, we use this prefix to setup ourSphinxHtmlProxy.
- option_spec: ClassVar[dict[str, Callable[[str], Any]]] = {'caption': <function unchanged>, 'classes': <function flag>, 'packages': <function flag>}#
Mapping of option names to validator functions.
- optional_arguments = 0#
Number of optional arguments after the required arguments.
- required_arguments = 1#
Number of required directive arguments.