A Sphinx extension for automatically documenting omni commands by extracting their help information.
This uses the --output json flag of the help command which was introduced in omni 0.0.29.
pip install omnicli-sphinx- Add 'omnicli_sphinx' to your extensions in conf.py:
extensions = [
'omnicli_sphinx',
# ... other extensions
]- Use the directive in your RST files:
.. omnicli:: commandUse omni clone omnicli/sphinx-extension to clone this repository.
You can also clone it with git clone and then use omni up to install dependencies.
Use omni test to run the tests.
MIT License