Generate your own documentation
Learn how to generate a documentation website just like this one!
-
Download rescript-docs-gen project
wget -O rescript-docs-gen.zip https://codeberg.org/lil5/rescript-docs-gen/archive/main.zipunzip rescript-docs-gen.ziprm rescript-docs-gen.zipcd rescript-docs-gen -
Generate the rescript json documentation from your project
mkdir -p ./src/data/filenpx rescript-tools@0.6.6 doc <my_project>/src/File.res > ./src/data/file/File.json -
Copy the readme file of your project (optional)
cp <my_project>/README.md ./src/data/file/README.md -
Build the html documentation website
pnpm installpnpm run build -
Done! Documentation is found in
dist/
, copy the contents to a webhostDirectorydist
- __astro
- chunks
- guides
- pages
- reference
- _astro-internal_middleware.mjs
- _noop-actions.mjs
- 404.html
- favicon.svg
- index.html
- manifect_wytaorsiet.mjs
- renderers.mjs