Skip to content

Commit 1a3be6d

Browse files
committed
✨ PHPDoc configuration
Signed-off-by: mathieu.brunot <[email protected]>
1 parent dc93c44 commit 1a3be6d

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ typings/
8181
# next.js build output
8282
.next
8383

84+
# ignore phpdoc cache directories
85+
.phpdoc/
86+
docs/
87+
8488
###> symfony/framework-bundle ###
8589
/app/.env.local
8690
/app/.env.local.php

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ typings/
9090
# next.js build output
9191
.next
9292

93+
# ignore phpdoc cache directories
94+
.phpdoc/
95+
9396
# Custom files
9497
.docker/
9598
build.date

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
See GitHub Pages at [monogramm.github.io/vue-symfony-starter](https://monogramm.github.io/vue-symfony-starter/).
2525

26+
You can generate the PHP documentation using PHPDocumentor:
27+
28+
```bash
29+
docker run --rm -v "${PWD}:/data" phpdoc/phpdoc:3 run
30+
```
31+
2632
## :chart_with_upwards_trend: Changes
2733

2834
All notable changes to this project will be documented in [CHANGELOG](./CHANGELOG.md) file.

phpdoc.dist.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<phpdocumentor
3+
configVersion="3.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://www.phpdoc.org"
6+
xsi:noNamespaceSchemaLocation="https://docs.phpdoc.org/latest/phpdoc.xsd"
7+
>
8+
<paths>
9+
<output>docs/php</output>
10+
<cache>.phpdoc/cache</cache>
11+
</paths>
12+
<version number="latest">
13+
<api>
14+
<source dsn=".">
15+
<path>app</path>
16+
</source>
17+
<ignore hidden="true" symlinks="true">
18+
<path>app/tests/**/*</path>
19+
<path>app/vendor/**/*</path>
20+
<path>app/node_modules/**/*</path>
21+
<path>app/var/**/*</path>
22+
<path>app/public/build/**/*</path>
23+
<path>app/bin/**/*</path>
24+
<path>.phpdoc/**/*</path>
25+
</ignore>
26+
<markers>
27+
<marker>TODO</marker>
28+
<marker>FIXME</marker>
29+
<marker>XXX</marker>
30+
</markers>
31+
</api>
32+
</version>
33+
</phpdocumentor>

0 commit comments

Comments
 (0)