Skip to content

Commit 2de82b6

Browse files
committed
build docs in binder
1 parent e5cd75b commit 2de82b6

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

.binder/environment.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: pythreejs
1+
name: pythreejs-binder
2+
23
channels:
34
- conda-forge
45
- nodefaults
5-
dependencies:
6+
7+
dependencies:
68
# runtimes
79
- nodejs >=12,!=13,<15 # prefer LTS
810
- pip
@@ -27,3 +29,8 @@ dependencies:
2729
- matplotlib-base
2830
- scikit-image
2931
- scipy
32+
# docs
33+
- nbsphinx >=0.2.13
34+
- nbsphinx-link
35+
- sphinx >=1.5
36+
- sphinx-rtd-theme

.binder/postBuild

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
#!/usr/bin/env bash
22
set -eux
33

4+
export PIP_DISABLE_PIP_VERSION_CHECK=1
5+
export PYTHONUNBUFFERED=1
6+
export PYTHONIOENCODING=utf-8
7+
48
pushd js
59
jlpm --ignore-optional
610
popd
711

12+
# install and validate python environment
813
python setup.py sdist
9-
python -m pip install -v dist/pythreejs*.tar.gz --no-deps --ignore-installed
14+
python -m pip install -v dist/pythreejs*.tar.gz
15+
python -m pip install -e .[test,examples,docs] --ignore-installed
16+
python -m pip check || echo "uh oh"
17+
18+
# build docs
19+
pushd docs
20+
make html
21+
popd
1022

11-
# validate
23+
# validate extensions
1224
jupyter nbextension list
1325
jupyter labextension list

0 commit comments

Comments
 (0)