MNT: Move extras/scripts around a bit

This commit is contained in:
Kernc
2019-01-06 17:04:50 +01:00
parent 3faae71e24
commit fcc65aa987
8 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -1,6 +1,5 @@
exclude MANIFEST.in
exclude .*
exclude logo.*
recursive-exclude .* *
recursive-exclude doc *

View File

@@ -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 \

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB