Skip to content

mlange-42/modo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ff24fc5 Â· Apr 13, 2025
Apr 13, 2025
Feb 4, 2025
Apr 3, 2025
Apr 13, 2025
Jan 23, 2025
Feb 9, 2025
Jan 18, 2025
Jan 26, 2025
Apr 13, 2025
Jan 10, 2025
Jan 23, 2025
Feb 13, 2025
Jan 17, 2025
Apr 13, 2025
Apr 13, 2025
Feb 5, 2025
Jan 23, 2025
Jan 23, 2025

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. See the Modo🧯 slides for a feature overview.

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

With Go, you can also install the latest development version:
go install github.com/mlange-42/modo@main

Precompiled binaries

Pre-compiled binaries for manual installation are available in the Releases for Linux, Windows and MacOS.

Usage

To initialize an existing Mojo🔥 project for Modo🧯 and an SSG like Hugo, run command init once:

modo init hugo

This sets up everything to be able to build Markdown files for the target SSG with command build:

modo build

Finally, serve or build the site with the target SSG (here Hugo):

hugo serve -s docs/site/

See Project setup for details and other supported SSGs.

Packages using Modo🧯

  • Larecs🌲 -- a performance-centred archetype-based ECS (docs).
  • ExtraMojo -- a collection of useful things that aren't (yet) in the standard library (docs).

License

This project is distributed under the MIT license.