Python wrapper for Modo, a documentation generator (DocGen) for the Mojo programming language.
Project description
Modo🧯
Modo🧯 is a documentation generator (DocGen) for the Mojo🔥 programming language.
It generates Markdown for static site generators (SSGs) from mojo doc JSON output.
This example in the User guide shows a Mojo🔥 package processed with Modo🧯 and rendered with Hugo, to demonstrate Modo🧯's features.
Features
- Generates Mojo🔥 API docs for Hugo, mdBook or just plain Markdown.
- Provides a simple syntax for code cross-references.
- Optionally structures API docs according to package re-exports.
- Optionally extracts doc-tests for
mojo testfrom code blocks. - Customizable output through user templates.
See the User guide for more information.
Installation
Using Python
Modo🧯 is available on PyPI as pymodo.
Install it with pip:
pip install pymodo
This installs the
modocommand. If the command is not found, try:
python -m pymodo
Using Go
With Go installed, you can install Modo🧯 like this:
go install github.com/mlange-42/modo@latest
Precompiled binaries
Pre-compiled binaries for manual installation are available in the Releases for Linux, Windows and MacOS.
Usage
In your Mojo🔥 project, set up Modo🧯:
modo init
This sets up the project with default settings and paths.
See the generated modo.yaml file to modify them.
Next, run mojo doc to extract the API docs in JSON format:
mojo doc src/ -o api.json
Finally, build the Markdown documentation:
modo build
See the User guide for more information.
Packages using Modo🧯
License
This project is distributed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymodo-0.8.1.tar.gz.
File metadata
- Download URL: pymodo-0.8.1.tar.gz
- Upload date:
- Size: 8.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ef2eeb30d237dee349dc15b4efc2041cdd024d31da4927b8452352db59641b
|
|
| MD5 |
7247c2ced83790bd9420f2e79de002c4
|
|
| BLAKE2b-256 |
7de0b3491ffab44df93d7600fd6b502ea4ad74133e45759e9e676c5ae340f1e8
|
File details
Details for the file pymodo-0.8.1-py3-none-any.whl.
File metadata
- Download URL: pymodo-0.8.1-py3-none-any.whl
- Upload date:
- Size: 8.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d01acd2155f917aa3d4de221cff52869bd4798af403295bc7c7bfbebd9bd2e17
|
|
| MD5 |
fdffa781e5cf4b82008b334e54e9c4fc
|
|
| BLAKE2b-256 |
3037377b8930435b2b16d48c37541cf2d8677b0d4e5140292fd36b8942ffc8f8
|