Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.21.1 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/release/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

There are two sets of tags available:

  • idoc:X: a build of idoc that bundles the latest stable release of Inko
  • idoc-main:X: a build of idoc that bundles the latest build from Inko's main branch

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".

About

A documentation generator for Inko

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages