Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 9ddcc98

Browse files
committed
Merge pull request #79 from froschdesign/docs/switch-from-bookdown-to-mkdocs
[Docs] Switch from Bookdown to MkDocs configuration
2 parents 0f45aee + 230c2fa commit 9ddcc98

File tree

5 files changed

+69
-0
lines changed

5 files changed

+69
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
.*.un~
88
nbproject
99
tmp/
10+
doc/html/
11+
zf-mkdoc-theme/
1012

1113
clover.xml
1214
composer.lock

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@ branches:
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13+
- $HOME/.local
14+
- zf-mkdoc-theme
1315

1416
env:
1517
global:
1618
- TESTS_ZEND_VALIDATOR_ONLINE_ENABLED=true
19+
- SITE_URL: https://zendframework.github.io/zend-validator
20+
- GH_USER_NAME: "Matthew Weier O'Phinney"
21+
- GH_USER_EMAIL: [email protected]
22+
- GH_REF: github.com/zendframework/zend-validator.git
23+
- secure: ""
1724

1825
matrix:
1926
fast_finish: true
@@ -28,6 +35,8 @@ matrix:
2835
- php: 5.6
2936
env:
3037
- EXECUTE_TEST_COVERALLS=true
38+
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
39+
- PATH="$HOME/.local/bin:$PATH"
3140
- php: 5.6
3241
env:
3342
- SERVICE_MANAGER_VERSION="^2.7.5"
@@ -61,6 +70,11 @@ script:
6170
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
6271
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
6372
- if [[ $EXECUTE_HOSTNAME_CHECK == "true" && $TRAVIS_PULL_REQUEST == "false" ]]; then php bin/update_hostname_validator.php --check-only; fi
73+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
74+
75+
after_success:
76+
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
77+
6478

6579
after_script:
6680
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

doc/book/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<div class="container">
2+
<div class="jumbotron">
3+
<h1>zend-validator</h1>
4+
5+
<p>
6+
The Zend\Validator component provides a set of commonly needed validators.
7+
</p>
8+
9+
<pre><code class="language-bash">$ composer require zendframework/zend-validator</code></pre>
10+
</div>
11+
</div>

doc/book/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../README.md

mkdocs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
docs_dir: doc/book
2+
site_dir: doc/html
3+
pages:
4+
- index.md
5+
- Intro: intro.md
6+
- Reference:
7+
- "Standard Validation Classes": set.md
8+
- Validators
9+
- Barcode: barcode.md
10+
- Between: between.md
11+
- Callback: callback.md
12+
- CreditCard: credit-card.md
13+
- Date: date.md
14+
- "Db\RecordExists and Db\NoRecordExists": db.md
15+
- Digits: digits.md
16+
- EmailAddress: email-address.md
17+
- "File Validation Classes": file.md
18+
- GreaterThan: greater-than.md
19+
- Hex: hex.md
20+
- Hostname: hostname.md
21+
- Iban: iban.md
22+
- Identical: identical.md
23+
- InArray: in-array.md
24+
- Ip: ip.md
25+
- Isbn: isbn.md
26+
- IsInstanceOf: isinstanceof.md
27+
- LessThan: less-than.md
28+
- NotEmpty: not-empty.md
29+
- Regex: regex.md
30+
- Sitemap: sitemap.md
31+
- Step: step.md
32+
- StringLength: string-length.md
33+
- Timezone: timezone.md
34+
- Uri: uri.md
35+
- "Validator Chains": validator-chains.md
36+
- "Writing Validators": writing-validators.md
37+
- "Validation Messages": validation-messages.md
38+
site_name: zend-validator
39+
site_description: zend-validator
40+
repo_url: 'https://github.com/zendframework/zend-validator'
41+
copyright: 'Copyright (c) 2016 <a href="http://www.zend.com/">Zend Technologies USA Inc.</a>'

0 commit comments

Comments
 (0)