Sign inSign up

wlsc/mkdocs

By wlsc

•Updated about 7 years ago

Ad-hoc container to operate MkDocs

Image
1

1.6K

wlsc/mkdocs repository overview

⁠Ad-hoc MkDocs Docker image

This is an ad-hoc Docker image to operate MkDocs without a need to install Python (i.e., on CI pipelines).

⁠How to run

Entrypoint of the Docker image is set to mkdocs.

⁠Generate a new project

You can generate new project named project into host-mounted folder /home/john/mkdocs by executing:

docker run -v /home/john/mkdocs:/data mkdocs new project

⁠Serve existing project

You can serve existing project on build-in MkDocs server. In the below example your project will be accessible on Docker's IP-address and port 8000.

 docker run -v /home/john/mkdocs/project:/data -p 8000:8000 mkdocs serve

⁠LICENSE

Licensed under MIT License⁠.

Tag summary

Content type

Image

Digest

Size

64.9 MB

Last updated

about 7 years ago

docker pull wlsc/mkdocs