summaryrefslogtreecommitdiffstats
path: root/util/docker/doc.coreboot.org/makeSphinx.sh
blob: 3b0c4e336fe6d6bb78b6a550eb89a0bc712780c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if [ "$1" == "livehtml" ]; then
  echo "Starting live documentation build"
  cd /data-in/Documentation && make livesphinx BUILDDIR=/tmp/build
else
  echo "Starting production documentation build"
  cd /data-in/Documentation \
    && make sphinx BUILDDIR=/tmp/build \
    && rm -rf /data-out/* \
    && mv /tmp/build/html/* /data-out/
fi