Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jul 23, 2024
1 parent 5e07e81 commit 1ef0920
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 59 deletions.
57 changes: 0 additions & 57 deletions Makefile

This file was deleted.

15 changes: 13 additions & 2 deletions scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

GP=
if [[ "$OSTYPE" == *bsd* ]] || [[ "$OSTYPE" =~ darwin* ]]; then
GP=g
fi

pushd ${DIR}/..

QGIS_VERSION=master
Expand Down Expand Up @@ -85,8 +90,14 @@ cp -r _static api/${QGIS_VERSION}/_static
echo "##[endgroup]"

echo "##[group]Build HTML"
make prepare QGIS_VERSION=${QGIS_VERSION}
make html QGIS_VERSION=${QGIS_VERSION}
${GP}sed -r "s/__QGIS_VERSION__/${QGIS_VERSION}/g;" conf.in.py > api/${QGIS_VERSION}/conf.py
sphinx-build -M html api/${QGIS_VERSION} build/${QGIS_VERSION} -T -j auto
echo "##[endgroup]"

echo "##[group]Move files around"
rm -rf build/${QGIS_VERSION}/doctrees
mv build/${QGIS_VERSION}/html/* build/${QGIS_VERSION}
rm -rf build/${QGIS_VERSION}/html
echo "##[endgroup]"

popd

0 comments on commit 1ef0920

Please sign in to comment.