Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 1124556

Browse files
authored
Merge pull request repejota#92 from repejota/feature/phpdoc
Feature/phpdoc
2 parents 8ec07b6 + 998e622 commit 1124556

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ vendor
44
cover
55
*.phar
66
/composer.phar
7+
/phpDocumentor.phar
78
/composer.lock
9+
/docs/api
810
build
911
.idea

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ bdd:
1919

2020
cover:
2121
./vendor/bin/phpunit --coverage-html ./cover test
22+
2223
deps:
2324
wget -q https://getcomposer.org/composer.phar -O ./composer.phar
2425
chmod +x composer.phar
@@ -29,8 +30,18 @@ dist-clean:
2930
rm -rf vendor
3031
rm -f composer.phar
3132
rm -f composer.lock
33+
rm -f phpDocumentor.phar
34+
rm -rf docs/api
3235

3336
docker-nats:
3437
docker run --rm -p 8222:8222 -p 4222:4222 -d --name nats-main nats
3538

39+
phpdoc:
40+
wget -q https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.9.0/phpDocumentor.phar -O ./phpDocumentor.phar
41+
chmod +x phpDocumentor.phar
42+
./phpDocumentor.phar -d ./src/ -t ./docs/api --template=checkstyle --template=responsive-twig
43+
44+
serve-phpdoc:
45+
cd docs/api && php -S localhost:8000 && cd ../..
46+
3647
.PHONY: lint test cs cover deps dist-clean

0 commit comments

Comments
 (0)