The documentation of ktlint is served with mkdocs-material. For full documentation visit mkdocs.org.
To build and test documentation on your local development machine, follow steps below:
Preferences
JSON Schema mappings
https://squidfunk.github.io/mkdocs-material/schema.json
and add file mkdocs.yml
for this url.$ docker pull squidfunk/mkdocs-material
The following steps build and host the documentation locally, updating automatically whenever a local file is changed.
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
http://0.0.0.0:8000/
in your browser.If you do not want to run a local server, or if you want to inspect the built files, you can run the following command from the project's main directory to build the documentation in the site/
directory.
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material build