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

Commit c3fb148

Browse files
committed
Merge branch 'hotfix/gh-pages-integration'
Close #95
2 parents bec350c + 43e03f3 commit c3fb148

File tree

9 files changed

+49
-16
lines changed

9 files changed

+49
-16
lines changed

.gitignore

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

1113
clover.xml
1214
composer.lock

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ branches:
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13+
- $HOME/.local
14+
- zf-mkdoc-theme
15+
16+
env:
17+
global:
18+
- SITE_URL: https://zendframework.github.io/zend-servicemanager
19+
- GH_USER_NAME: "Matthew Weier O'Phinney"
20+
- GH_USER_EMAIL: [email protected]
21+
- GH_REF: github.com/zendframework/zend-servicemanager.git
22+
- secure: "KoLcNj22t668IhAhm5ej6DNf23waoGrZpQ1kmuq5ptTqsXjFjy/cjOJCvWOeRX62Tl2kjc7co9UeK0f91osZ2Wq7HLb+1bIXX5SrB6SfyPUajCQtCtu0xGgEKZfuQwzLWSYoR3tsaD6vqgMjKwwst10d+AyICjdLNu9dHtdu9HpozZtK3kM9+0FwMOiRqFEND2GY05oVYXOrzgu1xNmE1YEGpjKzqqBNpqFOP4W+OnTMRTQcyrlbFzOFvAip7X3GGw9iUSnSzZTnIOWJgMdah8/eFqhrPO8O73faW+/v3ZTxdwupOEZyg7s3TD6+W9rjmN+TgOZEP484PcSlUc6sXA4QM4iL8xthG3bWk8+CDrsnuQmunrXz7T5xUEHs/7B8NuGJ8yT89fMCYGySERKIfCx17+N9kP/848A/+39LE1NIlTxnaPISfm9WMNG67xsEKyJluC/YataPGl0zZ6/7Q7w1oDYvjhsqooUsxKRD2/psd1zrVDJurDa7Ayv/E21u2dIDtbp6w9Zl+he+kwRItMNhtCdzyShqtuY0V/JRmn2lZY2PsfbICRXXAbQnDveNFYz5tE2K40Qm4RWrdZ4cnaLiNJeukdYKVJCFHtZr9rdx1uVeK78Pf5o3rt4S8S1aat35eMZQunc6s4gmeXU5+wIxwXiyOtkdlL3LztSox9s="
1323

1424
matrix:
1525
fast_finish: true
@@ -20,6 +30,8 @@ matrix:
2030
- php: 5.6
2131
env:
2232
- EXECUTE_TEST_COVERALLS=true
33+
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
34+
- PATH="$HOME/.local/bin:$PATH"
2335
- php: 7
2436
- php: hhvm
2537
allow_failures:
@@ -42,6 +54,10 @@ script:
4254
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
4355
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
4456
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs ; fi
57+
- 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
58+
59+
after_success:
60+
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
4561

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

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ All notable changes to this project will be documented in this file, in reverse
1010
cyclic alias detection to the `ServiceManager`; it now raises a
1111
`Zend\ServiceManager\Exception\CyclicAliasException` when one is detected,
1212
detailing the cycle detected.
13+
- [#95](https://github.com/zendframework/zend-servicemanager/pull/95) adds
14+
GitHub Pages publication automation, and moves the documentation to
15+
https://zendframework.github.io/zend-servicemanager/
1316

1417
### Deprecated
1518

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ component. The Service Locator is a service/object locator, tasked with
1212
retrieving other objects.
1313

1414
- File issues at https://github.com/zendframework/zend-servicemanager/issues
15-
- [Online documentation](https://zend-servicemanager.rtfd.org)
16-
- [Documentation source files](doc/)
15+
- [Online documentation](https://zendframework.github.io/zend-servicemanager)
16+
- [Documentation source files](doc/book/)
1717

1818
## Benchmarks
1919

doc/book/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="container">
2+
<div class="jumbotron">
3+
<h1>zend-servicemanager</h1>
4+
5+
<p>Factory-Driven Dependency Injection Container</p>
6+
7+
<pre><code class="language-bash">$ composer require zendframework/zend-servicemanager</code></pre>
8+
</div>
9+
</div>
10+

doc/book/index.md

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

doc/bookdown.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

doc/html/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

mkdocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
docs_dir: doc/book
2+
site_dir: doc/html
3+
pages:
4+
- index.md
5+
- 'Quick Start': quick-start.md
6+
- Reference:
7+
- 'Configuring the service manager': configuring-the-service-manager.md
8+
- Delegators: delegators.md
9+
- 'Lazy services': lazy-services.md
10+
- 'Plugin managers': plugin-managers.md
11+
- 'Migration Guide': migration.md
12+
site_name: zend-servicemanager
13+
site_description: 'zend-servicemanager: factory-driven dependency injection container'
14+
repo_url: 'https://github.com/zendframework/zend-servicemanager'
15+
copyright: 'Copyright (c) 2016 <a href="http://www.zend.com/">Zend Technologies USA Inc.</a>'

0 commit comments

Comments
 (0)