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-1.0.0rc0.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file ewokssphinx-1.0.0rc0.tar.gz.

File metadata

  • Download URL: ewokssphinx-1.0.0rc0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for ewokssphinx-1.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 fdb883d7b70305de456bc51af650dc142356f8b6cfb89f283c13937a1d6c6b99
MD5 160f372290c962923c6b8fadedc7e84e
BLAKE2b-256 aeca0f2095c317f89baba050a36363e1ad0e4ff3e8390946e6e067224882e094

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