Skip to content

Commit

Permalink
Merge branch 'master' of github.com:diana-hep/carl
Browse files Browse the repository at this point in the history
  • Loading branch information
glouppe committed Apr 22, 2016
2 parents 7c34fe6 + 2ede99a commit e47c705
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions ci/travis-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
#!/bin/bash
echo "Running deployment script..."
conda install jupyter
pip install pdoc==0.3.2
conda install --yes jupyter
pip install pdoc==0.3.2 pygments

# Generating documentation
cd ~
mkdir -p ./doc/notebooks
cd ./doc/notebooks
mkdir -p ./doc/carl/notebooks
cd ./doc/carl/notebooks

OIFS="$IFS"
IFS=$'\n'
for nb in ${TRAVIS_BUILD_DIR}/examples/*ipynb; do
jupyter nbconvert $nb --to markdown
jupyter nbconvert "$nb" --to markdown
done
cp ${TRAVIS_BUILD_DIR}/examples/*md .
cp -r ${TRAVIS_BUILD_DIR}/examples/*_files .
IFS="$OIFS"

cd ~
python ${TRAVIS_BUILD_DIR}/ci/make_doc.py --overwrite --html --html-dir ./doc --template-dir ${TRAVIS_BUILD_DIR}/ci/templates --notebook-dir ./doc/notebooks carl
python ${TRAVIS_BUILD_DIR}/ci/make_doc.py --overwrite --html --html-dir ./doc --template-dir ${TRAVIS_BUILD_DIR}/ci/templates --notebook-dir ./doc/carl/notebooks carl

# Copying to github pages
echo "Copying built files"
git clone -b gh-pages "https://${GH_TOKEN}@github.com/diana-hep/carl.git" deploy > /dev/null 2>&1 || exit 1
cd deploy
git rm -r notebooks/*
cd ..
cp -r ./doc/carl/* deploy

# Move into deployment directory
Expand Down

0 comments on commit e47c705

Please sign in to comment.