Skip to main content

MkDocstrings VBA handler

Project description

mkdocstrings-vba

A VBA handler for mkdocstrings.

Since there is no official way of documenting VBA functions, we have opted for the Google Docstring format commonly used in Python projects. This is conveniently parsed by the griffe library which is also used by mkdocstrings[python]. The argument types and return types are taken from the VBA Function or Sub signatures, which we parse using regex.

Examples

See the examples folder.

To build an example site:

  1. pip install mkdocstrings mkdocstrings-vba
  2. cd examples/example1
  3. View the source code.
  4. mkdocs build
  5. cd site/
  6. View the results.

Running tests

pip install -r test-requirements.txt
python -m unittest

This will run all tests. This includes

  • Unit tests from tests/.
  • Doctests from mkdocstrings_vba/.
  • Full builds from examples/.

Linting

Fix code style using black:

black .

Check types using mypy:

mypy .

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

mkdocstrings_vba-0.0.10.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

mkdocstrings_vba-0.0.10-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file mkdocstrings_vba-0.0.10.tar.gz.

File metadata

  • Download URL: mkdocstrings_vba-0.0.10.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for mkdocstrings_vba-0.0.10.tar.gz
Algorithm Hash digest
SHA256 1cf6fa5d1c7a33d3fbca6ced1beedcc9202d98954b342d5b5562ac1515fbe720
MD5 aaaf87a74ee98aeaab93542c1b27d005
BLAKE2b-256 30efdc49d53dfb927df60af2fa6d56480c008cc07f005368d2f526ffa465f352

See more details on using hashes here.

File details

Details for the file mkdocstrings_vba-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocstrings_vba-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ab0d79815015f23e01a73c6bba3e7e310f294c3fe72abea831a612bd7de3dca4
MD5 c4b3892116462445a2476b70ee25ae73
BLAKE2b-256 947b91d11a5e7317fd0ac1192a5f87d11731927b2d5dda7e362672dbd6b9adcc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page