8000 [doc build] Use a separate repo for binder examples. · scikit-learn/scikit-learn@afa4de0 · GitHub
[go: up one dir, main page]

Skip to content

Commit afa4de0

Browse files
committed
[doc build] Use a separate repo for binder examples.
1 parent b1cd935 commit afa4de0

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

build_tools/circle/push_doc.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ git config user.email "olivier.grisel+sklearn-ci@gmail.com"
6060
git config user.name $USERNAME
6161
git config push.default matching
6262

63-
# binder folder for requirements needs to be at the root of the repo
64-
if [ -d dev/binder ]; then
65-
rm -f binder
66-
ln -s dev/binder
67-
git add binder
68-
fi
69-
7063
git commit -m "$MSG" $dir
7164
git push
7265
echo $MSG

doc/binder/requirements.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# Requirements for running the examples
2-
numpy
3-
scipy
4-
scikit-learn
5-
matplotlib
6-
pandas
7-
scikit-image
1+
# This is required by sphinx-gallery 0.4 but not needed since the examples are
2+
# not in the scikit-learn.github.io repo that comes from the scikit-learn doc
3+
# build but on a separate repo. This file can be removed if 'dependencies' key
4+
# is made an optional key for binder in sphinx-gallery.

doc/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@
255255
'examples_dirs': ['../examples'],
256256
'gallery_dirs': ['auto_examples'],
257257
'binder': {
258-
'org': 'scikit-learn',
259-
'repo': 'scikit-learn.github.io',
260-
'url': 'https://mybinder.org',
258+
'org': 'lesteve',
259+
'repo': 'test-binder-scikit-learn',
260+
'binderhub_url': 'https://mybinder.org',
261261
'branch': 'master',
262262
'dependencies': './binder/requirements.txt',
263263
'use_jupyter_lab': True

0 commit comments

Comments
 (0)
0