Skip to main content

Sphinx plugin which can render invoke tasks with autodoc

Project description

REUSE status Code style: black Imports: isort PyPI version Coverage Status

Invoke Plugin for Sphinx

This is a plugin which allows the documentation of invoke tasks with sphinx autodoc. An invoke task looks like a normal function but the @task decorator creates a Task object behind the scenes. Documenting these with autodoc can lead to errors or unexpected results.

Installation

pip install invoke-plugin-for-sphinx, that's it.

Usage

Add the plugin to the extensions list:

extensions = ["invoke_plugin_for_sphinx"]

Then you can use .. automodule:: as usual. Behind the scenes, the function documenter of autodoc is extended to also handle tasks equal to functions. Therefore the same configurations, limitations and features apply.

Development

This project uses uv. To setup a venv for development use python3.14 -m venv venv && pip install uv && uv sync --all-groups && rm -rf venv/. Then use source .venv/bin/activate to activate your venv.

Build and Publish

This project uses setuptools as the dependency management and build tool. To publish a new release, follow these steps:

  • Update the version in the pyproject.toml
  • Add an entry in the changelog
  • Push a new tag like vX.X.X to trigger the release

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2025 SAP SE or an SAP affiliate company and invoke-plugin-for-sphinx contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

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

invoke_plugin_for_sphinx-3.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invoke_plugin_for_sphinx-3.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file invoke_plugin_for_sphinx-3.1.0.tar.gz.

File metadata

  • Download URL: invoke_plugin_for_sphinx-3.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for invoke_plugin_for_sphinx-3.1.0.tar.gz
Algorithm Hash digest
SHA256 dc04525de3558dc173164b384a2c1cdd971da18f6603701633fe344aa3cc6ba8
MD5 a126f401dd59a84a0048ae828b878be8
BLAKE2b-256 0c5151b819cacf75413f6296d83b165722ff3c93f92e8e2a239d348c86b74158

See more details on using hashes here.

Provenance

The following attestation bundles were made for invoke_plugin_for_sphinx-3.1.0.tar.gz:

Publisher: release.yml on SAP/invoke-plugin-for-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file invoke_plugin_for_sphinx-3.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for invoke_plugin_for_sphinx-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e21df0b51d3d21ac0a2426f7e8b8d153ffa7fd3030f1edc7100be0a7df6f885
MD5 ba7734ba0e66275aab9908d660594db6
BLAKE2b-256 445a0a6bc905d994454b851870ee51738d8d30912b7e3185baff0f000c0e32b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for invoke_plugin_for_sphinx-3.1.0-py3-none-any.whl:

Publisher: release.yml on SAP/invoke-plugin-for-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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