Skip to content

Commit c74ad02

Browse files
committed
phpDocumentor script added.
1 parent ce1576b commit c74ad02

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
"url": "https://www.paypal.me/syslogic"
2222
}],
2323
"scripts": {
24+
"docs": "phpDocumentor.phar",
2425
"test": "vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration phpunit.xml --testsuite main",
2526
"start": [ "Composer\\Config::disableProcessTimeout", "FUNCTION_TARGET=on_https php -S localhost:${PORT:-8081} vendor/bin/router.php" ],
2627
"coverage_linux": "export XDEBUG_MODE=coverage && vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration coverage.xml --testsuite main",
2728
"coverage_windows": "setlocal xdebug.mode=coverage && %cd%/vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration coverage.xml --testsuite main"
2829
},
2930
"scripts-descriptions": {
31+
"docs": "Generate docs",
3032
"test": "Run PHPunit tests",
3133
"start": "Call function on_https",
3234
"coverage_linux": "Run PHPUnit tests with code coverage on Linux",

phpdoc.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<phpdocumentor
3+
configVersion="3"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://www.phpdoc.org"
6+
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd">
7+
<paths>
8+
<output>build/docs</output>
9+
<cache>build/cache</cache>
10+
</paths>
11+
<version number="3.0.0">
12+
<api>
13+
<source dsn=".">
14+
<path>src</path>
15+
</source>
16+
</api>
17+
</version>
18+
</phpdocumentor>

0 commit comments

Comments
 (0)