Sign inSign up

macrat/sphinx-pdf

By macrat

•Updated over 6 years ago

My Docker image for generate PDF and HTML by Sphinx.

Image
0

256

macrat/sphinx-pdf repository overview

⁠sphinx-pdf

My Docker image for generate PDF and HTML by Sphinx⁠

Docker Hub

⁠How to Use

⁠1. Pull image
$ docker pull macrat/sphinx-pdf
⁠2. Make project
$ docker run --rm -itv `pwd`:/docs macrat/sphinx-pdf sphinx-quickstart
$ ls
Makefile  _build  _static  _templates  conf.py  index.rst  make.bat
⁠3. Build project
$ docker run --rm -v `pwd`:/docs macrat/sphinx-pdf

In default, build PDF to ./_build/latex/ and build HTML to ./_build/html/.

⁠3: Alternate. Build only PDF
$ 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.

Tag summary

Content type

Image

Digest

Size

1.3 GB

Last updated

over 6 years ago

docker pull macrat/sphinx-pdf