Skip to main content

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)

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.

Metadata

Release files for sphinx-localecmddoc 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-localecmddoc 0.7.0
File Size Uploaded Provenance Actions
sphinx_localecmddoc-0.7.0.tar.gz 19.9 kB Without provenance Details for sphinx_localecmddoc-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-localecmddoc 0.7.0
File Interpreter ABI Platform Actions
sphinx_localecmddoc-0.7.0-py3-none-any.whl Python 3 none any Details for sphinx_localecmddoc-0.7.0-py3-none-any.whl

Total release size: 29.6 kB

Release files / sphinx_localecmddoc-0.7.0.tar.gz

Download URL sphinx_localecmddoc-0.7.0.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1faeded6011c683b6fca679d35e214f44228c6cc8424707f0825abcce470c450
BLAKE2b-256 checksum
How to use checksums
f0cae22bb0bff0f8d0042d09658dee158ebe9cdbf09275df59858ba3df523d06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / sphinx_localecmddoc-0.7.0-py3-none-any.whl

Download URL sphinx_localecmddoc-0.7.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92e1d3b250fa20402814b982b7e0c549ab5435213250d77ce55067d3b63b6e88
BLAKE2b-256 checksum
How to use checksums
11b7437ffcb7ec14b41cac1b5ae366d6eac8dae47c3111e5aaa623357017f6da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for sphinx-localecmddoc 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page