Sign inSign up

rhene/sphinx-latexpdf

By rhene

•Updated over 5 years ago

build sphinx latexpdf

Image
0

1.6K

rhene/sphinx-latexpdf repository overview

⁠docker-sphinx-with-rtd-theme

Based Docker image :

Custom added packages :

  • fonts-ipafont
  • pandoc

Custom added Python modules:

  • sphinx_rtd_theme
  • recommonmark
  • sphinx-markdown-tables
  • ipython
  • nbsphinx

⁠How To Use

Build docker image and Make Sphinx documents.
Please replace placeholders <your_tag>, </your/document/path> with your environment.

  1. Build docker image.

    Build docker image from Dockerfile.

    docker build -t <your_tag> ./
    
  2. 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
    

⁠Example

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

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

over 5 years ago

docker pull rhene/sphinx-latexpdf