Revision bf8dac9fcd4ea31cb6a00c8a71273ee5a9a629b3 authored by Jean Kossaifi on 23 April 2018, 20:34:58 UTC, committed by Jean Kossaifi on 23 April 2018, 22:58:05 UTC
1 parent 5282925
Raw File
deploy_docs.sh
#!/bin/bash

# Inspired from scikit-image
# https://github.com/scikit-image/scikit-image/blob/master/tools/travis/deploy_docs.sh
(
    git config --global user.email "admin@tensorly.org"
    git config --global user.name "Travis"

	# Installed the dependencies
	conda install matplotlib Pillow sphinx
	pip install slimit rcssmin 

	# cd to the doc folder and build the doc
	cd doc
	make html
	cd ..

    git clone --quiet https://github.com/tensorly/tensorly.github.io doc_folder
    cd doc_folder
    git rm -r dev/*
    cp -r ../doc/_build/html/* dev/

    git add dev
    git commit -m "Travis auto-update"
    git push --force --quiet "https://github.com/tensorly/tensorly.github.io" > /dev/null 2>&1
)
back to top