MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file. Start by reading the introduction below, then check the User Guide for more info.
First from the root dir build the docker image as below
docker build -t <image_name> .
docker run -it --rm -v <path_to_docs>:/shared_dir -p 8000:8000 mkdocs_image produce
docker run -it --rm -v <dir_of_tar.gz_file>:/shared_dir -p 8000:8000 mkdocs_image serve
docker run -it --rm -v <dir_of_tar.gz_file>:/shared_dir -p 8000:8000 mkdocs_image run
docker run -it --rm -v <path_to_docs>:/shared_dir -p 8000:8000 mkdocs_image serve_mkd
checkout code from here to a dir as
/triad_challenge
You can produce the compressed file from that docs as
docker run -it --rm -v /triad_challenge/:/shared_dir -p 8000:8000 mkdocs_image produce
a site.tar.gz file will be placed in the /triad_challenge dir
docker run -it --rm -v /triad_challenge/:/shared_dir -p 8000:8000 mkdocs_image run
Note: /shared_dir
is a standard name, do not change it.