A docker container for MkDocs with the Material theme.
You can use the mkdocs built-in web server:
# using HTTP
git clone https://github.com/abousselmi/doxtak-build.git
# or using SSH
git clone git@github.com:abousselmi/doxtak-build.gitcd doxtak-builddocker run -it --rm \
-p 80:80 \
-v $PWD/samples:/doxtak/docs/my_projects \
-v /root/www:/www \
abousselmi/doxtak-build serve -a 0.0.0.0:80 -f doxtak/mkdocs.ymlAs you can see, two separate volumes are used:
- /doxtak/docs for the source files (*.md)
- /www for build (you can serve directly from this volume)
You can use this container as a function to build your source files. Then you can use a web server such as Apache or Nginx for serving the static html files.
To build source files you can use:
docker run \
-v $PWD/samples:/doxtak/docs/my_projects \
-v /root/www:/www \
abousselmi/doxtak-build build -f doxtak/mkdocs.ymlFor more info, please visit:
MIT
