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
    

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.2.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ewokssphinx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4ddecca355bda452f00793efa8282717581b89b40cc2adb2d9f4617bd461b333
MD5 a72c22a50f4b3aa013673f145e46a172
BLAKE2b-256 dde094c055f2b6c236250043a0886a42531165cdcbc9c9c8b4b0fcd91f6c3c4b

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