mirror of
https://github.com/kernc/backtesting.py.git
synced 2024-01-28 15:29:30 +03:00
MNT: Move extras/scripts around a bit
This commit is contained in:
@@ -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 \
|
||||
|
||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Reference in New Issue
Block a user