Ewoks Sphinx directives
Project description
ewokssphinx
A set of Sphinx directives for Ewoks
Quick start
pip install ewokssphinx
Then, add ewokssphinx to the list of extensions in the Sphinx configuration file:
# conf.py
...
extensions = [
...,
"ewokssphinx"
]
Contents
There is only one directive for now.
Ewoks tasks directive
Basic use
The ewokstasks directive will generate documentation automatically for all Ewoks tasks (be it class, method or ppfmethod) contained in the module. As for autodoc, the module must be importable.
⚠️ The
ewokstasksdirective must be placed in the main section of the document! Do not place it in another directive (admonition or other) or the structure of the document may be broken!
Example:
.. ewokstasks:: ewoksxrpd.tasks.integrate
It is also possible to give a pattern for recursive generation. For example, The following command will generate documentation for all tasks contained in the modules of ewoksxrpd.tasks:
.. ewokstasks:: ewoksxrpd.tasks.*
Options
-
:task-type:: (class,methodorppfmethod)Generates documentation only for the specified task type.
Example:
To generate documentation for the Ewoks class tasks in
ewoksxrpd.tasks.integrate:.. ewokstasks:: ewoksxrpd.tasks.integrate :task-type: class -
:ignore-import-error:Print a warning instead of raising an error when an import fails.
Example:
.. ewokstasks:: ewoksxrpd.tasks.integrate :ignore-import-error:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ewokssphinx-0.4.0.tar.gz.
File metadata
- Download URL: ewokssphinx-0.4.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4834d3ec9fba43ab5d87c504828bf2203abd76e6f6bc138dba37214579d11297
|
|
| MD5 |
0855f89980c051e4a1bdcaa04a2a5c0f
|
|
| BLAKE2b-256 |
29bd708dc218fc92dbdbbffe709ebb3c86bd296a1f792bbd7e7d03319d70babc
|