Skip to content
Permalink
Browse files

MNT: Move extras/scripts around a bit

  • Loading branch information...
kernc committed Jan 6, 2019
1 parent 3faae71 commit fcc65aa987d0e7ab8c1348d66aa7518176041fe9
File renamed without changes.
@@ -33,7 +33,7 @@ matrix:
script:
- doc/build.sh
after_success:
- if [ "$TRAVIS_BRANCH" = "$TRAVIS_TAG" ]; then bash doc/deploy.sh; fi
- if [ "$TRAVIS_BRANCH" = "$TRAVIS_TAG" ]; then bash .github/deploy-gh-pages.sh; fi

before_install:
- set -e
@@ -1,6 +1,5 @@
exclude MANIFEST.in
exclude .*
exclude logo.*

recursive-exclude .* *
recursive-exclude doc *
@@ -32,7 +32,7 @@ popd >/dev/null
echo
echo 'Ensuring example notebooks match their py counterparts'
echo
strip_yaml () { awk -f "$DOCROOT/strip_yaml.awk" "$@"; }
strip_yaml () { awk -f "$DOCROOT/scripts/strip_yaml.awk" "$@"; }
for ipynb in "$DOCROOT"/examples/*.ipynb; do
echo "Checking: '$ipynb'"
diff <(strip_yaml "${ipynb%.ipynb}.py") <(jupytext --to py --output - "$ipynb" | strip_yaml) ||
@@ -45,7 +45,7 @@ echo 'Converting example notebooks → py → HTML'
echo
jupytext --test --update --to ipynb "$DOCROOT/examples"/*.py
{ mkdir -p ~/.ipython/profile_default/startup
cp -f "$DOCROOT/ipython_config.py" ~/.ipython/profile_default/startup/99-backtesting-docs.py
cp -f "$DOCROOT/scripts/ipython_config.py" ~/.ipython/profile_default/startup/99-backtesting-docs.py
trap 'rm -f ~/.ipython/profile_default/startup/99-backtesting-docs.py' EXIT; }
PYTHONWARNINGS='ignore::UserWarning,ignore::RuntimeWarning' \
jupyter-nbconvert --execute --to=html \
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fcc65aa

Please sign in to comment.
You can’t perform that action at this time.