From 2941d91199321c4f8e28615bbba565a5b824b2a0 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Sun, 6 Nov 2016 13:27:22 +0100 Subject: [PATCH] fixes path errors --- README.md | 6 +++--- deploy.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 72cbca4..38c1094 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ The results look like this: ```yaml script: - - - 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 @@ -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 @@ -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 diff --git a/deploy.sh b/deploy.sh index 472eac7..c131e91 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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}" @@ -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}"