Skip to content

Commit

Permalink
Start from an empty git repo to build docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Feb 10, 2016
1 parent 9d9c5b7 commit 546b396
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ sudo pip install -r requirements.txt

# Build the documentation
GITHUB_USERNAME=${TRAVIS_REPO_SLUG%/*}
rm -rf bioconda.github.io
git clone https://github.com/${GITHUB_USERNAME}/bioconda.github.io.git
rm -rf bioconda.github.io
mkdir -p bioconda.github.io
sphinx-build . bioconda.github.io
cd bioconda.github.io
git init
sphinx-build .. .

# Add generated files to the bioconda.github.io repository
cd bioconda.github.io
echo '.*' >> .gitignore
git add .
git -c user.name='travis' -c user.email='travis' commit --all -m "Updated docs to commit ${TRAVIS_COMMIT}."
git config user.name "Travis CI"
git commit --all -m "Updated docs to commit ${TRAVIS_COMMIT}."
git push -f -q "https://${GITHUB_TOKEN}@github.com/${GITHUB_USERNAME}/bioconda.github.io.git" master &> /dev/null

# Cleanup
Expand Down

0 comments on commit 546b396

Please sign in to comment.