Skip to content

Commit b7d2a9a

Browse files
committed
Docs
1 parent 184ce7b commit b7d2a9a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,24 @@
22

33
The CakePHP API docs allow you to build the API documentation as seen on
44
https://api.cakephp.org
5+
6+
7+
8+
### Running documentation generator on a CakePHP codebase
9+
10+
The tool generates documentation from CakePHP source code. According to the Makefile, you need:
11+
- A local clone of the CakePHP repository (default location: ../cakephp/)
12+
- Run the generator command
13+
14+
For example, to test with CakePHP 5.2:
15+
16+
#### Ensure you have a CakePHP clone
17+
```
18+
cd ../cakephp/ && git checkout origin/5.x && cd -
19+
```
20+
21+
#### Run the generator
22+
```
23+
php bin/apitool.php generate --config cakephp5 --version 5.2 --tag origin/5.x --output-dir build/test/ ../cakephp
24+
```
25+

0 commit comments

Comments
 (0)