gh-pages-generator path

master
Evgeny Poberezkin 2016-04-16 21:58:55 +01:00
parent 601d0e6a48
commit c40fb0a484
2 changed files with 4 additions and 3 deletions

View File

@ -140,7 +140,7 @@ While it can be more challenging to define keywords with "inline" functions, it
- the best performance - the best performance
- the precise control over validation process - the precise control over validation process
- access to the parent data and the path to the currently validated data - access to the parent data and the path to the currently validated data
- access to ajv utilities via `it.util` - access to Ajv utilities via `it.util`
Example `even` keyword: Example `even` keyword:
@ -331,7 +331,7 @@ ajv.addKeyword('range', {
statements: true, statements: true,
errors: true // keyword should create custom errors when validation fails errors: true // keyword should create custom errors when validation fails
// errors: 'full' // created errors should have dataPath already set // errors: 'full' // created errors should have dataPath already set
// errors: false // keyword never creates errors, ajv will add a default error // errors: false // keyword never creates errors, Ajv will add a default error
}); });
``` ```

View File

@ -9,8 +9,9 @@ if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAV
mkdir -p ../gh-pages/_source mkdir -p ../gh-pages/_source
cp *.md ../gh-pages/_source cp *.md ../gh-pages/_source
cp LICENSE ../gh-pages/_source cp LICENSE ../gh-pages/_source
currentDir=$(pwd)
cd ../gh-pages cd ../gh-pages
./node_modules/.bin/gh-pages-generator $currentDir/node_modules/.bin/gh-pages-generator
git config user.email "$GIT_USER_EMAIL" git config user.email "$GIT_USER_EMAIL"
git config user.name "$GIT_USER_NAME" git config user.name "$GIT_USER_NAME"
git add . git add .