Skip to content

Commit f48b107

Browse files
authored
chore: update build-documentation command to use ostk-build-docs (#394)
1 parent 5693972 commit f48b107

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

Makefile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,24 +195,14 @@ build-documentation-standalone: ## Build documentation (standalone)
195195
docker run \
196196
--rm \
197197
--volume="$(CURDIR):/app:delegated" \
198+
--env="CESIUM_TOKEN=${CESIUM_TOKEN}" \
198199
--volume="/app/build" \
199200
--workdir=/app/build \
200201
$(docker_development_image_repository):$(docker_image_version) \
201-
/bin/bash -c "cmake -DBUILD_UNIT_TESTS=OFF -DBUILD_BENCHMARK=OFF -DBUILD_VALIDATION_TESTS=OFF -DBUILD_PYTHON_BINDINGS=ON -DBUILD_DOCUMENTATION=ON .. \
202+
/bin/bash -c "cmake -DBUILD_UNIT_TESTS=OFF -DBUILD_SHARED_LIBRARY=ON -DBUILD_BENCHMARK=OFF -DBUILD_VALIDATION_TESTS=OFF -DBUILD_PYTHON_BINDINGS=ON -DBUILD_DOCUMENTATION=ON .. \
202203
&& ostk-build \
203204
&& ostk-install-python \
204-
&& pip install -r /app/docs/requirements.txt \
205-
&& mkdir -p /app/docs/_notebooks \
206-
&& cd /app/docs/_notebooks \
207-
&& git init \
208-
&& git remote add origin https://github.com/open-space-collective/open-space-toolkit \
209-
&& git config core.sparseCheckout true \
210-
&& echo "notebooks/Astrodynamics/*" >> .git/info/sparse-checkout \
211-
&& git pull origin main \
212-
&& find . -type f -name "*.ipynb" -exec mv {} . \; \
213-
&& cd /app/docs \
214-
&& breathe-apidoc -o cpp_rst xml -g class \
215-
&& sphinx-build -j 4 -b html . _build/html"
205+
&& ostk-build-docs --notebooks Astrodynamics"
216206

217207
.PHONY: build-documentation-standalone
218208

0 commit comments

Comments
 (0)