Skip to content

Commit ec79ef9

Browse files
committed
Add isolated build of the docs
1 parent 6554807 commit ec79ef9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ ! -f "../pyproject.toml" ]]; then
4+
echo "WTF"
5+
exit 1
6+
fi
7+
8+
TARGET=singlehtml
9+
10+
python3 -m venv .docs_venv
11+
12+
echo "Installing dependencies"
13+
.docs_venv/bin/pip install sphinx myst_parser
14+
15+
echo "Installing python bindings"
16+
.docs_venv/bin/pip install --force --no-cache ..
17+
18+
echo "Building the website"
19+
.docs_venv/bin/sphinx-build -M ${TARGET} . _build

0 commit comments

Comments
 (0)