Based Docker image :
sphinxdoc/sphinx-latexpdfCustom added packages :
Custom added Python modules:
Build docker image and Make Sphinx documents.
Please replace placeholders <your_tag>, </your/document/path> with your environment.
Build docker image.
Build docker image from Dockerfile.
docker build -t <your_tag> ./
Make Sphinx Document.
If you want to create a new Sphinx project, execute the following command.
# Create new shpinx template project
docker run -it --rm -v </your/document/path>:/docs <your_tag> sphinx-quickatart ./
Run make html or make latexpdf.
# make html
docker run --rm -v </your/document/path>:/docs <your_tag> make html
# make latexpdf
docker run --rm -v </your/document/path>:/docs <your_tag> make latexpdf
for example, set image tag rhene/sphinx-latexpdf, mount current directory and execute make html
# clone this repository
git clone https://github.com/rhenerose/docker-sphinx-with-rtd-theme
cd docker-sphinx-with-rtd-theme
# build docker image
docker build -t rhene/sphinx-latexpdf ./
# chage directory to your sphinx project path
cd /your/document/path
# mount current directory and execute `make html`
# bash or PowerShell
docker run --rm -v "$(pwd):/docs" rhene/sphinx-latexpdf make html
# cmd.exe
docker run --rm -v "%cd%:/docs" rhene/sphinx-latexpdf make html
Content type
Image
Digest
Size
1.1 GB
Last updated
over 5 years ago
docker pull rhene/sphinx-latexpdf