Skip to content

Commit

Permalink
Build doc'tn sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
e-lo committed Feb 27, 2019
1 parent d367d10 commit 1b08106
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 50 deletions.
35 changes: 35 additions & 0 deletions bin/local-update-documentation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#! /usr/bin/env bash

# This file automatically deploys changes to http://BayAreaMetro.github.io/fast-trips/.
# This will give you an access token("secure"). This helps in creating an
# environment variable named GH_TOKEN while building.
#
# Add this secure code to .travis.yml as described here http://docs.travis-ci.com/user/encryption-keys/

# Exit on error
set -e

ft_dir="$PWD"

echo "Building docs"
cd doc
doxygen doxygen.conf
sphinx-build -b html source build

echo "Creating temporary directory"
tmpdir = $("ft_ghpages" $(mktemp -u))
cd tempdir
echo "Cloning repository"

git clone --quiet --single-branch --branch=gh-pages [email protected]:BayAreaMetro/fast-trips.git gh-pages > /dev/null 2>&1

cd gh-pages
rm -rf *

cp -R ../fast-trips/doc/build/** ./
touch .nojekyll
##git add -A .

##git commit -am "Update documentation"
##echo "Pushing commit"
##git push -fq origin gh-pages > /dev/null 2>&1
50 changes: 0 additions & 50 deletions bin/update-documentation.sh

This file was deleted.

0 comments on commit 1b08106

Please sign in to comment.