Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_localecmddoc-0.4.3.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

sphinx_localecmddoc-0.4.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_localecmddoc-0.4.3.tar.gz.

File metadata

  • Download URL: sphinx_localecmddoc-0.4.3.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sphinx_localecmddoc-0.4.3.tar.gz
Algorithm Hash digest
SHA256 3cbb4c50684baf7c244e4e229eae3d72d5e63ba03aebeb0bd8636576b24c4f99
MD5 5997d90770e47e16e3ff2447b9be2697
BLAKE2b-256 ac18e9d279bcab61d38048f19143c6ab887e1334503b24cd34f73f40c18a6fd8

See more details on using hashes here.

File details

Details for the file sphinx_localecmddoc-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_localecmddoc-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7947ed17a2b9f9b267353d56d6bf9bd34729b6d53e48d52a389ecb076be279a8
MD5 b537eb5fd1b63b94a66c013d91e77705
BLAKE2b-256 13ad3d690cee14dd36f3699a59afd5bbf21b332b836e148c75713a3d0ddbd521

See more details on using hashes here.

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