Skip to content

Minocula/docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

docker-sphinx

Docker images for Sphinx.

Images

  • sphinxdoc/sphinx
  • sphinxdoc/sphinx-latexpdf

Note:

sphinxdoc/sphinx-latexpdf contains TeXLive packages. So the image is very large (over 2GB!).

Usage

Create a Sphinx project::

$ docker run -it --rm -v /path/to/document:/docs sphinxdoc/sphinx sphinx-quickstart

Build HTML document::

$ docker run --rm -v /path/to/document:/docs sphinxdoc/sphinx make html

Build EPUB document::

$ docker run --rm -v /path/to/document:/docs sphinxdoc/sphinx make epub

Build PDF document::

$ docker run --rm -v /path/to/document:/docs sphinxdoc/sphinx-latexpdf make latexpdf

Tips

If you would like to install dependencies, use sphinxdoc/sphinx as a base image::

# in your Dockerfile
FROM sphinxdoc/sphinx

WORKDIR /docs
ADD requirements.txt /docs
RUN pip3 install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%