Skip to content

Commit

Permalink
fixes path errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Nov 6, 2016
1 parent b6e3fd0 commit 2941d91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The results look like this:
```yaml
script:
- <do something ...>
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/polderknowledge/mkdoc-theme/master/theme-installer.sh | bash ; fi
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/polderknowledge/mkdocs-theme/master/theme-installer.sh | bash ; fi
```

This will run the code to install MkDocs and its extensions, and, if the
Expand All @@ -127,7 +127,7 @@ Now we'll add the `after_success` script:

```yaml
after_success:
- if [[ $DEPLOY_DOCS == "true" ]]; then ./mkdoc-theme/deploy.sh ; fi
- if [[ $DEPLOY_DOCS == "true" ]]; then ./mkdocs-theme/deploy.sh ; fi
```

The above runs *only* if the build has been a success, and will not change the
Expand All @@ -144,7 +144,7 @@ dependencies, so you'll likely already have a `cache` section to your
cache:
directories:
- $HOME/.local
- mkdoc-theme
- mkdocs-theme
```

## A note on caching
Expand Down
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P)"
rev=$(git rev-parse --short HEAD)

# Initialize gh-pages checkout
mkdir -p doc/html
mkdir -p docs/html
(
cd doc/html
cd docs/html
git init
git config user.name "${GH_USER_NAME}"
git config user.email "${GH_USER_EMAIL}"
Expand All @@ -49,7 +49,7 @@ ${SCRIPT_PATH}/build.sh

# Commit and push the documentation to gh-pages
(
cd doc/html
cd docs/html
touch .
git add -A .
git commit -m "Rebuild pages at ${rev}"
Expand Down

0 comments on commit 2941d91

Please sign in to comment.