Sphinx extension for autodocumenting localecmd modules
Project description
sphinx-localecmddoc
Sphinx extension for autodocumenting localecmd modules The extension is hard-coded to generate markdown to be parsed with the myst-parser.
Install
The commands assume that your virtual environment is activated in the terminal. The installation will also install the needed dependencies if not present:
- Sphinx
- Myst-parser
- Localecmd (which is needed for what to document)
Install from pypi
To install the package and its dependencies, run
pip install sphinx-localecmddoc
Remember to add the dependency to the pyproject.toml (or equvalent)
Install from git (not recommended, but only option)
To install the package and its dependencies, run
pip install sphinx-localecmddoc @ git+https://codeberg.org/jbox/sphinx-localecmddoc.git@main
Quickstart
The following assumes that you already have set up sphinx with myst-parser.
Within the conf.py, add the extension to the extension list:
extensions = [
...
'localecmddoc',
...
]
Localecmddoc does not search for localecmd.Modules. Instead they must be given explicitly to the configuration. A basic start is simply using the module with functions provided by localecmd.
localecmd_modules = {
'localecmd.builtins': 'localecmd-builtins',
}
Add its index file to a toctree (example in restructured text)
.. toctree
...
functions/index.md
... (other files)
When running sphinx, a folder functions will be created containing the documentation of every module.
The file localecmd-builtins.md will contain the documentation of the localecmd.builtins module.
Contribute
Thank you for contributing!
The contributing section of the documentation will help you to the start.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_localecmddoc-0.5.0.tar.gz.
File metadata
- Download URL: sphinx_localecmddoc-0.5.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d72d55acb19e6705f95fd567be1d99edd4f97be2143689b5b89a78f00ebb48
|
|
| MD5 |
1cdef63fa739a65c6792ea7bbac18528
|
|
| BLAKE2b-256 |
20ad44dfaf3276488ad6d0bad931ff19025bc6eba368d60d3f15caf17294cbfe
|
File details
Details for the file sphinx_localecmddoc-0.5.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_localecmddoc-0.5.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d5152461e97ef9a51035c30424287e7605382f074e8105746232d5a35fcc6e
|
|
| MD5 |
ee94300ba7c1b218fda6605963576abc
|
|
| BLAKE2b-256 |
78957995a68932b66f47cc30562336860baff3151ec6894413aec132a1edea30
|