Skip to content

Commit

Permalink
use external script
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Nov 8, 2023
1 parent f19a3dc commit da5c7fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ build:
post_checkout:
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viqP "skip ci|ci skip") || exit 183
pre_build:
- mkdir build
- cd build
- cmake -DGDAL_BUILD_OPTIONAL_DRIVERS=OFF -DOGR_BUILD_OPTIONAL_DRIVERS=OFF -DBUILD_PYTHON_BINDINGS=ON -DBUILD_TESTING=OFF ..
- make -j$(nproc)
- make install
- cd ../doc
- python3 -m pip install -r requirements.txt
- ./docs/rtd/pre_build.sh

apt_packages:
- cmake
Expand Down
19 changes: 19 additions & 0 deletions doc/rtd/pre_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
set -e

mkdir build
cd build

cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/.local \
-DGDAL_BUILD_OPTIONAL_DRIVERS=OFF \
-DOGR_BUILD_OPTIONAL_DRIVERS=OFF \
-DBUILD_PYTHON_BINDINGS=ON \
-DBUILD_TESTING=OFF ..

make -j$(nproc)
make install

cd ../doc
make doxygen

0 comments on commit da5c7fe

Please sign in to comment.