My Docker image for generate PDF and HTML by Sphinx.
282
My Docker image for generate PDF and HTML by Sphinx
$ docker pull macrat/sphinx-pdf
$ docker run --rm -itv `pwd`:/docs macrat/sphinx-pdf sphinx-quickstart
$ ls
Makefile _build _static _templates conf.py index.rst make.bat
$ docker run --rm -v `pwd`:/docs macrat/sphinx-pdf
In default, build PDF to ./_build/latex/ and build HTML to ./_build/html/.
$ docker run --rm -v `pwd`:/docs macrat/sphinx-pdf make latexpdf
Then you can see PDF in ./_build/latex/ directory.
Of course you can use html instead of latexpdf for build only HTML.
docker pull macrat/sphinx-pdf:latest