Skip to content

Dockerfile for compiling Sphinx with ReadTheDocs

Notifications You must be signed in to change notification settings

BWibo/sphinx-rtd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for Sphinx and ReadTheDocs

Dockerfile for Sphinx including following extensions:

The image is available on DockerHub: https://hub.docker.com/repository/docker/bwibo/sphinx-rtd

Usage

Mount your local docs folder to /docs inside the container and append the command you want to use. More info on the available commands is available in the documentation of the base image: https://hub.docker.com/r/sphinxdoc/sphinx

# Build HTML docs
docker run --rm \
    -v $PWD:/docs \
  bwibo/sphinx-rtd make html

Build

Run build.sh to build the image or:

docker build -t bwibo/sphinx-rtd --build-arg SPHINX_VERSION=6.2.1 .