Skip to content

mlange-42/modo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modo🧯

Test status stable nightly Go Report Card User Guide Go Reference GitHub MIT license

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

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 modo command. 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🧯

  • Larecs -- a performance-centred archetype-based ECS (docs).

License

This project is distributed under the MIT license.