forked from skrub-data/skrub
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9abf8ac
commit a6a1101
Showing
3 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
EXCLUDES="../setup.py | ||
echo "SKIPPING " $EXCLUDES | ||
sphinx-apidoc -o source .. $EXCLUDES | ||
make clean | ||
make html SPHINXOPTS="-W --keep-going -n" | ||
make latexpdf SPHINXOPTS="-W --keep-going -n" | ||
make epub SPHINXOPTS="-W --keep-going -n" | ||
PLATFORM=`uname` | ||
if [[ "$PLATFORM" == "Darwin" ]] | ||
then | ||
echo "Opening in Darwin.." | ||
open build/html/index.html | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
mkdir -p build | ||
|
||
RUN_INSTALLS="(cp -r /data /cu_cat && cd /cu_cat && python -m pip install -e .[docs,build] )" | ||
RUN_SPHINX="cd /data/docs && ./build.sh || ( echo 'Printing /tmp/sphinx*' && ( cat /tmp/sphinx* || echo no err_file ) && exit 1 )" | ||
|
||
#TODO make a docker layer so we can cache RUN_INSTALLS | ||
docker run \ | ||
--entrypoint=/bin/bash \ | ||
--rm \ | ||
-e USER_ID=$UID \ | ||
-v $(pwd)/..:/data \ | ||
ddidier/sphinx-doc:3.4.3-1 \ | ||
-c "${RUN_INSTALLS} && ${RUN_SPHINX}" |