Docker image for Sphinx.
This image contains:
- Sphinx
- A variety of themes:
- A markdown parser for reStructuredText (recommonmark)
- A sphinx watcher tool (sphinx-autobuild)
- A variety of plugins:
- Latex to generate PDF documents
git clone https://github.com/nickjer/docker-sphinx.git
cd docker-sphinx
docker build --force-rm -t nickjer/docker-sphinx .
docker pull nickjer/docker-sphinx
docker run --rm -i -t -v "${PWD}:/doc" -u "$(id -u):$(id -g)" nickjer/docker-sphinx <cmd>
It is recommended to use Docker Compose. An
example docker-compose.yml
is seen as:
version: "2"
services:
sphinx:
image: "nickjer/docker-sphinx"
volumes:
- "${PWD}:/doc"
user: "1000:1000"
Then run:
docker-compose run --rm sphinx <cmd>
Examples:
docker-compose run --rm sphinx sphinx-quickstart
docker-compose run --rm sphinx make html