From fb6fa7ceced6e74ae02ed24b92a488c6e65d3404 Mon Sep 17 00:00:00 2001 From: 1138-4EB <1138-4EB@users.noreply.github.com> Date: Sat, 23 Feb 2019 23:03:41 +0100 Subject: doc: add custom directive 'exec', generate releases shields and tables with json data retrieved from github api" --- doc/build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/build.sh (limited to 'doc/build.sh') diff --git a/doc/build.sh b/doc/build.sh new file mode 100644 index 000000000..98d9039b9 --- /dev/null +++ b/doc/build.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +cd $(dirname $0)/.. + +$(command -v winpty) docker run --rm -t \ + -v /$(pwd)://src \ + -w //src/doc \ + btdi/sphinx:py3-featured sh -c "$(cat <<-EOF +pip install -r requirements.txt +sphinx-build -T -b html -D language=en . _build/html +sphinx-build -T -b latex -D language=en . _build/latex +EOF +)" + +$(command -v winpty) docker run --rm -t \ + -v /$(pwd)://src \ + -w //src/doc \ + btdi/latex sh -c "$(cat <<-EOF +cd _build/latex +FILE=\"\`ls *.tex | sed -e 's/\.tex//'\`\" +pdflatex -interaction=nonstopmode \$FILE.tex; +makeindex -s python.ist \$FILE.idx; +pdflatex -interaction=nonstopmode \$FILE.tex; +EOF +)" -- cgit v1.2.3