Skip to content

Docker files for PMM documentation builds

Notifications You must be signed in to change notification settings

Percona-Lab/percona-doc-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

percona-doc-docker

Docker images that include dependencies for building Sphinx- and MkDocs-based Percona documentation.

  • mkdocs: An Ubuntu-based image for building MkDocs/Markdown documentation.
  • sphinx: Based on the official Sphinx sphinxdoc/sphinx image.
  • sphinx-latexpdf: Based on the official Sphinx sphinxdoc/sphinx-latexpdf image.

Usage

MkDocs projects

Perform a build (mkdocs build):

docker run --rm -v $(pwd):/docs perconalab/pmm-doc-md

Run the live preview local server (mkdocs serve):

docker run --rm -p 8000:8000 -v $(pwd):/docs perconalab/pmm-doc-md mkdocs serve -a 0.0.0.0:8000

Open your browser at http://localhost:8000

Create PDF:

docker run --rm -v $(pwd):/docs -e ENABLE_PDF_EXPORT=1 perconalab/pmm-doc-md mkdocs build -t material

(Read more)

Sphinx projects

For HTML:

docker run --rm -v $(pwd):/docs perconalab/percona-doc-sphinx make clean html

For PDF:

docker run --rm -v $(pwd):/docs perconalab/percona-doc-sphinx-latexpdf make latexpdf

Both assume a ./Makefile and Sphinx source files in ./source.

Contents

MkDocs packages and plugins:

Additional Fonts:

  • Chivo - To match Percona.com website theme.

Sphinx image

Sphinx extensions: