Skip to content
/ idoc Public

A documentation generator for Inko

License

Notifications You must be signed in to change notification settings

inko-lang/idoc

Repository files navigation

idoc

idoc is a documentation generator for Inko, turning Inko's documentation JSON files into a static website.

Usage

To generate documentation, run idoc in the root directory of your project (= the directory containing the src/ directory). The resulting website is found at ./build/idoc/public. For more information, run idoc --help.

Requirements

  • Inko 0.17.0 or newer

Installation

Building from source:

make install PREFIX=~/.local

This installs idoc into ~/.local, with the executable being found at ~/.local/bin, and the assets located at ~/.local/share/idoc/assets. To uninstall, run the following:

make uninstall PREFIX=~/.local

For testing changes locally, run the following

make build ASSETS=$PWD/assets

This builds the executable such that it uses the assets/ directory directly from the repository. In this case the executable is found at ./build/idoc.

You can also use the provided Docker image:

docker pull ghcr.io/inko-lang/idoc:latest
docker run --rm --volume $PWD:$PWD:z --workdir $PWD idoc:latest

Or when using Podman:

podman pull ghcr.io/inko-lang/idoc:latest
podman run --rm --volume $PWD:$PWD:z --workdir $PWD idoc:latest

License

All source code in this repository is licensed under the Mozilla Public License version 2.0, unless stated otherwise. A copy of this license can be found in the file "LICENSE".