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

Commit 57901c0

Browse files
committed
Merge pull request #23 from webimpress/hotfix/docs
Rebase doc templates
2 parents 1891a74 + c57ca18 commit 57901c0

File tree

8 files changed

+52
-40
lines changed

8 files changed

+52
-40
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/docs export-ignore
2-
/test export-ignore
31
/.coveralls.yml export-ignore
42
/.gitattributes export-ignore
53
/.gitignore export-ignore
64
/.travis.yml export-ignore
75
/composer.lock export-ignore
6+
/docs/ export-ignore
87
/mkdocs.yml export-ignore
98
/phpcs.xml export-ignore
109
/phpunit.xml.dist export-ignore
10+
/test/ export-ignore

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
docs/html/
2-
vendor/
3-
phpunit.xml
4-
zf-mkdoc-theme/
5-
clover.xml
6-
coveralls-upload.json
7-
zf-mkdoc-theme.tgz
1+
/clover.xml
2+
/coveralls-upload.json
3+
/docs/html/
4+
/phpunit.xml
5+
/vendor/
6+
/zf-mkdoc-theme.tgz
7+
/zf-mkdoc-theme/

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8-
- vendor
98

109
env:
1110
global:
@@ -34,19 +33,16 @@ matrix:
3433
- php: 7.2
3534
env:
3635
- DEPS=latest
37-
allow_failures:
38-
- php: 7.2
3936

4037
before_install:
4138
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
42-
- travis_retry composer self-update
4339

4440
install:
45-
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
41+
- travis_retry composer install $COMPOSER_ARGS
4642
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
4743
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
4844
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
49-
- composer show
45+
- stty cols 120 && composer show
5046

5147
script:
5248
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "zendframework/zend-problem-details",
33
"description": "Problem Details for PSR-7 HTTP APIs",
4-
"type": "library",
54
"license": "BSD-3-Clause",
65
"keywords": [
76
"api",
@@ -14,12 +13,10 @@
1413
"docs": "https://docs.zendframework.com/zend-problem-details/",
1514
"issues": "https://github.com/zendframework/zend-problem-details/issues",
1615
"source": "https://github.com/zendframework/zend-problem-details",
16+
"rss": "https://github.com/zendframework/zend-problem-details/releases.atom",
1717
"slack": "https://zendframework-slack.herokuapp.com",
1818
"forum": "https://discourse.zendframework.com/c/questions/expressive"
1919
},
20-
"config": {
21-
"sort-packages": true
22-
},
2320
"require": {
2421
"php": "^7.1",
2522
"ext-json": "*",
@@ -45,9 +42,15 @@
4542
"ZendTest\\ProblemDetails\\": "test/"
4643
}
4744
},
45+
"config": {
46+
"sort-packages": true
47+
},
4848
"extra": {
4949
"zf": {
5050
"config-provider": "Zend\\ProblemDetails\\ConfigProvider"
51+
},
52+
"branch-alias": {
53+
"dev-master": "1.0-dev"
5154
}
5255
},
5356
"scripts": {

docs/CONTRIBUTING.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
If you wish to contribute to this project, please be sure to
66
read/subscribe to the following resources:
77

8-
- [Coding Standards](https://github.com/zendframework/zend-coding-standard)
9-
- [Forums](https://discourse.zendframework.com/c/contributors)
10-
- [Slack](https://zendframework-slack.herokuapp.com)
8+
- [Coding Standards](https://github.com/zendframework/zend-coding-standard)
9+
- [Forums](https://discourse.zendframework.com/c/contributors)
10+
- [Slack](https://zendframework-slack.herokuapp.com)
11+
- [Code of Conduct](CODE_OF_CONDUCT.md)
1112

1213
If you are working on new features or refactoring
1314
[create a proposal](https://github.com/zendframework/zend-problem-details/issues/new).
@@ -155,7 +156,7 @@ To send a pull request, you have two options.
155156
If using GitHub, you can do the pull request from there. Navigate to
156157
your repository, select the branch you just created, and then select the
157158
"Pull Request" button in the upper right. Select the user/organization
158-
"zendframework" as the recipient.
159+
"zendframework" (or whatever the upstream organization is) as the recipient.
159160

160161
#### What branch to issue the pull request against?
161162

@@ -186,7 +187,3 @@ repository, we suggest doing some cleanup of these branches.
186187
```console
187188
$ git push {username} :<branchname>
188189
```
189-
190-
## Conduct
191-
192-
Please see our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) to understand expected behavior when interacting with others in the project.

docs/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
- [ ] I was not able to find an [open](https://github.com/zendframework/zend-problem-details/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-problem-details/issues?q=is%3Aclosed) issue matching what I'm seeing.
2+
- [ ] This is not a question. (Questions should be asked on [slack](https://zendframework.slack.com/) ([Signup for Slack here](https://zendframework-slack.herokuapp.com/)) or our [forums](https://discourse.zendframework.com/).)
3+
14
Provide a narrative description of what you are trying to accomplish.
25

36
### Code to reproduce the issue
47

8+
<!-- Please provide the minimum code necessary to recreate the issue -->
9+
510
```php
611
```
712

813
### Expected results
914

15+
<!-- What do you think should have happened? -->
16+
1017
### Actual results
1118

19+
<!-- What did you actually observe? -->

docs/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
Provide a narrative description of what you are trying to accomplish:
22

3-
- Are you fixing a bug?
4-
- Detail how the bug is invoked currently.
5-
- Detail the original, incorrect behavior.
6-
- Detail the new, expected behavior.
3+
- [ ] Are you fixing a bug?
4+
- [ ] Detail how the bug is invoked currently.
5+
- [ ] Detail the original, incorrect behavior.
6+
- [ ] Detail the new, expected behavior.
7+
- [ ] Base your feature on the `master` branch, and submit against that branch.
8+
- [ ] Add a regression test that demonstrates the bug, and proves the fix.
9+
- [ ] Add a `CHANGELOG.md` entry for the fix.
710

8-
- Are you creating a new feature?
9-
- Why is the new feature needed? What purpose does it serve?
10-
- How will users use the new feature?
11+
- [ ] Are you creating a new feature?
12+
- [ ] Why is the new feature needed? What purpose does it serve?
13+
- [ ] How will users use the new feature?
14+
- [ ] Base your feature on the `develop` branch, and submit against that branch.
15+
- [ ] Add only one feature per pull request; split multiple features over multiple pull requests
16+
- [ ] Add tests for the new feature.
17+
- [ ] Add documentation for the new feature.
18+
- [ ] Add a `CHANGELOG.md` entry for the new feature.
1119

12-
- Is this related to quality assurance?
13-
- Detail why the changes are necessary.
20+
- [ ] Is this related to quality assurance?
21+
<!-- Detail why the changes are necessary -->
1422

15-
- Is this related to documentation?
16-
- Is it a typographical and/or grammatical fix?
17-
- Is it new documentation?
23+
- [ ] Is this related to documentation?
24+
<!-- Is it a typographical and/or grammatical fix? -->
25+
<!-- Is it new documentation? -->

docs/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Zend Framework offers three support channels:
55
- For real-time questions, use our
66
[Slack](https://zendframework-slack.herokuapp.com)
77
- For detailed questions (e.g., those requiring examples) use our
8-
[forums](https://discourse.zendframework.com/c/contributors)
8+
[forums](https://discourse.zendframework.com/c/questions/expressive)
99
- To report issues, use this repository's
1010
[issue tracker](https://github.com/zendframework/zend-problem-details/issues/new)
1111

0 commit comments

Comments
 (0)