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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_autodoc_bmotif-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 23c92d9d3732a86961bf3313fd0c3ff1ad53714ffbb2e0c56af40f2049fa1b8c
MD5 84f6ca4ebc8f6a0888a47624f50a7155
BLAKE2b-256 8661481057aaeb850493610539419b523201f939455801a60b4a17ba2d094d9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sphinx_autodoc_bmotif-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c29bb9266571127e99c8f95e000653e33090a5e8a62e561919305c985b3d309
MD5 41611461fb609ac62acdc68d1d0b1a21
BLAKE2b-256 243d2d3ee531dee56a43384c6164ef5401b21e48994d7052d5f959031df4886d

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