Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshbeard/docker-mkdocs-material

Docker image containing MkDocs + Squidfunk Material theme
https://github.com/joshbeard/docker-mkdocs-material

docker docker-image dockerfile mkdocs mkdocs-material

Last synced: 1 day ago
JSON representation

Docker image containing MkDocs + Squidfunk Material theme

Awesome Lists containing this project

README

        

# mkdocs-material

[![CodeFactor](https://www.codefactor.io/repository/github/joshbeard/docker-mkdocs-material/badge)](https://www.codefactor.io/repository/github/joshbeard/docker-mkdocs-material)

An image containing [mkdocs](https://www.mkdocs.org/) with the
[material](https://squidfunk.github.io/mkdocs-material/) theme and plugins.

This image is built from the [python](https://hub.docker.com/_/python)
_3.x-slim_ and _3.x-alpine_ images.

## Project Resources

* Source Repository:
* [`Dockerfile`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile): (Alpine; default)
* [`Dockerfile-slim`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile): (Debian)
* Docker Hub:

## Tags

* [`9`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile),
[`9-alpine`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile):
Current 9.x release from PyPi from the `python:3.x-alpine` Alpine image.
* [`9-slim`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile-slim):
Current 9.x release from PyPi from the `python:3.x-slim` Debian image.
* [`latest`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile),
[`latest-alpine`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile):
Current release from PyPi from the `python:3.x-alpine` Alpine image.
* [`latest-slim`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/Dockerfile-slim):
Current release from PyPi from the `python:3.x-slim` Debian image.

## Running

Mount a folder with an mkdocs site and `mkdocs.yml` file to `/docs` on the container.

* Start the development server on `:8000`

```shell
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs joshbeard/mkdocs-material:9
```

* Build documentation. This produces static content in a `site/` directory:

```shell
docker run --rm -it -v ${PWD}:/docs joshbeard/mkdocs-material:9 build
```

Refer to the [example](https://github.com/joshbeard/docker-mkdocs-material/tree/master/example) to see an example
site using `docker-compose`.

## Plugins

* Check [`builds/latest-requirements.txt`](https://github.com/joshbeard/docker-mkdocs-material/blob/master/builds/latest-requirements.txt)
* The [example site MkDocs config](https://github.com/joshbeard/docker-mkdocs-material/tree/master/example/mkdocs.yml) has several plugins enabled.
*

## Maintainers

* Josh Beard,