Skip to content

juliendehos/misodoc

Repository files navigation

misodoc

A Miso app that generates a documentation from MD files (inspired by mdBook).

Use the commonmark-hs markdown implementation.

setup

  • install Nix Flakes

  • install Cachix

  • use miso's cachix:

cachix use haskell-miso-cachix

build and run (wasm)

nix develop .#wasm --command bash -c "make && make serve"

or (dev):

nix develop .#wasm
make build && make serve

build and run (docker)

nix develop .#wasm --command bash -c "make"
nix-build docker.nix
docker load < result
docker run --rm -it -p 3000:3000 misodoc:latest

edit with vscode

nix-shell
code .

highlight.js

custom build: https://highlightjs.org/download