Sphinx plugin which can render invoke tasks with autodoc
Project description
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.
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 2024 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
Built Distribution
File details
Details for the file invoke_plugin_for_sphinx-2.1.0.tar.gz
.
File metadata
- Download URL: invoke_plugin_for_sphinx-2.1.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d3ea20c68fa2d111f14653037f3cdb6d84ec25248ffee54e90499b5b05f2d4 |
|
MD5 | 139fd224b701c6398e790b6a69c91df6 |
|
BLAKE2b-256 | 7daac1883264b5e9168cd83f5c2131228da00d3dfa2e2f0f2a2bca0ffb7f24e3 |
File details
Details for the file invoke_plugin_for_sphinx-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: invoke_plugin_for_sphinx-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3cc26afc398d95b1ed9f965a2c07a386609ec51a0d542072b01ce2c6e500fd |
|
MD5 | 2bffa512c29e33dc0200cc4d19213d63 |
|
BLAKE2b-256 | 0899922a3e39b1a31d12778b7d19e314ff3de12d4e2f04c572558828eab6a386 |