gh-pages-generator path
parent
601d0e6a48
commit
c40fb0a484
|
@ -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
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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 .
|
||||||
|
|
Loading…
Reference in New Issue