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.0rc1.tar.gz (9.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ewokssphinx-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 9.5 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.0rc1.tar.gz
Algorithm Hash digest
SHA256 e9f54d0c75e873f8e7ff64cab0c23f4bdd70b7764de9891662ebdd14fdd4d623
MD5 16ddb4467da7ece5acd16e396e67bdd1
BLAKE2b-256 dab5c92e0676980a12687af7c0613d7cfc8606ebdf636a34d738302b0d5418ef

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