Skip to content

Commit 3b0a076

Browse files
committed
Updated guides for deployment, setup and contributing
1 parent ae02679 commit 3b0a076

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

DEPLOYMENT.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,22 @@ We follow [Semantic Versioning](https://semver.org/).
1414

1515
- In `src/ConvertKit_API.php`, change the `const VERSION` to the new version number.
1616

17+
## Run phpDocumentor
18+
19+
We use [phpDocumentor](https://www.phpdoc.org/) to automatically generate the [PHP SDK documentation](./docs/classes/ConvertKit_API/ConvertKit_API.md).
20+
21+
In a Terminal window, run the phpDocumentor command to generate documentation in markdown format:
22+
23+
```bash
24+
phpDocumentor --directory=src --target=docs --template="vendor/saggre/phpdocumentor-markdown/themes/markdown"
25+
```
26+
1727
## Commit Changes
1828

1929
Commit the updated files, which should comprise of:
2030

2131
- `src/ConvertKit_API.php`
32+
- `docs/classes/ConvertKit_API/ConvertKit_API.md`
2233

2334
## Create a New Release
2435

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@ try {
8181

8282
## Documentation
8383

84-
See the [PHP SDK docs](./docs/classes/ConvertKit_API/ConvertKit_API.md)
84+
See the [PHP SDK docs](./docs/classes/ConvertKit_API/ConvertKit_API.md)
85+
86+
## Contributing
87+
88+
See our [contributor guide](CONTRIBUTING.md) for setting up your development environment, testing and submitting a PR.
89+
90+
For ConvertKit, refer to the [deployment guide](DEPLOYMENT.md) on how to publish a new release.

SETUP.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ parameters:
7979
8080
### Install Packages
8181
82-
In the Plugin's directory, at the command line, run `composer install`.
82+
In the root directory, at the command line, run `composer install`.
8383

8484
This will install two types of packages:
8585
- Packages used by the SDK (e.g. Guzzle and Monolog)
@@ -88,9 +88,17 @@ This will install two types of packages:
8888
-- PHPUnit
8989
-- PHP_CodeSniffer
9090

91-
How to use these is covered later on, and in the [Testing Guide](TESTING.md)
91+
### Install phpDocumentor
9292

93-
### Running the Test Suite
93+
Download the latest phpDocumentor release.
94+
95+
On Mac / Linux, mark it as executable and move it to your bin folder, so it can be run globally:
96+
```bash
97+
chmod +x phpDocumentor.phar
98+
mv phpDocumentor.phar /usr/local/bin/phpDocumentor
99+
```
100+
101+
### Running PHPUnit Tests
94102

95103
In a Terminal window, run the tests to make sure there are no errors and that you have
96104
correctly setup your environment:
@@ -106,7 +114,7 @@ your environment is setup successfully.
106114

107115
### Running CodeSniffer
108116

109-
In the Plugin's directory, run the following commands to run PHP_CodeSniffer, which will check the code meets PHP Coding Standards:
117+
In the root directory, run the following commands to run PHP_CodeSniffer, which will check the code meets PHP Coding Standards:
110118

111119
```bash
112120
vendor/bin/phpcs

0 commit comments

Comments
 (0)