Skip to main content

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 ewokstasks directive 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, method or ppfmethod)

    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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ewokssphinx-0.3.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file ewokssphinx-0.3.0.tar.gz.

File metadata

  • Download URL: ewokssphinx-0.3.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for ewokssphinx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e9cc87652e36a72d8bb5bce604edd544ba0f70e70bc1c3d848686dd403b0ee2d
MD5 b78b9cb57b95f42626e89fca99d900c5
BLAKE2b-256 674097030f73600381387eddf3b409001f04b03874584d86543bcb44f86a0ed7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page