Skip to main content

Generate documentation for BuildingMOTIF templates (Jupyter Book v2 / mystmd)

Project description

sphinx-autodoc-bmotif

Generate documentation for BuildingMOTIF templates, compatible with Jupyter Book v2 / mystmd.

Installation

uv add sphinx-autodoc-bmotif

Usage

Option 1: CLI (multi-page, pre-build)

Generate .md and .svg files for each template, then include them in your myst.yml table of contents:

sphinx-autodoc-bmotif generate <template-library-dir> <output-dir>
# or
python -m sphinx_autodoc_bmotif generate <template-library-dir> <output-dir>

Then build with myst build or jb build ..

Option 2: MyST executable plugin (single-page, inline)

Add the plugin to your myst.yml:

project:
  plugins:
    - type: executable
      path: path/to/myst_plugin.py

Or if installed as a package:

project:
  plugins:
    - type: executable
      path: sphinx-autodoc-bmotif-plugin

Then use the directive in your .md files:

```{autotemplatedoc} path/to/template-library
```

Required Sphinx extensions (for the inline plugin)

None — this plugin uses the mystmd plugin protocol directly. Tabs, code blocks, and links are rendered natively by mystmd.

Build docs

# Pre-generate template docs
uv run sphinx-autodoc-bmotif generate templates docs/libraries

# Build with mystmd
cd docs && myst build

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_autodoc_bmotif-0.2.0.tar.gz (84.2 kB view details)

Uploaded Source

Built Distribution

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

sphinx_autodoc_bmotif-0.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autodoc_bmotif-0.2.0.tar.gz.

File metadata

  • Download URL: sphinx_autodoc_bmotif-0.2.0.tar.gz
  • Upload date:
  • Size: 84.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sphinx_autodoc_bmotif-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7f1061f7e7a2a91d7b247416633940912c445b4d80da079f9f236a0de39bd828
MD5 bcf4933abb9ec190e10a33fb75ac3ee8
BLAKE2b-256 705f2420f46a7c6cc032c9bfdf05b10f81c71e6d8e0c7071fa59a76d7bc286b9

See more details on using hashes here.

File details

Details for the file sphinx_autodoc_bmotif-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_autodoc_bmotif-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sphinx_autodoc_bmotif-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1893c17506e95bc5c0e279bfbac1373e32749d37a169a76846a1840437755f3
MD5 ba2adb204e52eca7ea8b81fd97523e8c
BLAKE2b-256 3e73d893a0ac41524051cf566f387279e20ac5648cea532e756f2cc7ebcd7fcb

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