You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`tools/api_refs/api_refs.sh` is a script generating PHP API Reference, by default, under `docs/api/php_api/php_api_reference/`.
9
+
`tools/api_refs/api_refs.sh` is a script generating PHP & REST API References, by default, under `docs/api/php_api/php_api_reference/` and `docs/api/rest_api/rest_api_reference/`.
10
10
11
-
- For Composer, if you do not use a global authentication to retrieve _Commerce_ edition, a path to an auth.json file can be given as first argument. For example:
11
+
- For Composer, if you do not use a global authentication to retrieve _Commerce_ edition, a path to an auth.json file can be given as first optional argument. For example:
- The second argument can be a path to an output directory to use instead of the default one. For example, using the Composer global authentication file as first argument and the path to directory (which is created if it doesn't exist yet):
15
+
- The second optional argument can be a path to an output directory to use instead of the default one. For example, using the Composer global authentication file as first argument and the path to directory (which is created if it doesn't exist yet):
- The next three optional arguments are the REST API files
20
+
- 3rd arg is the reference HTML file path
21
+
- 4th arg is the file path for the OpenAPI specification in YAML format
22
+
- 5th arg is the file path for the OpenAPI specification in JSON format
19
23
20
24
## Rebuild example
21
25
@@ -100,3 +104,17 @@ if [ 0 -eq $DXP_ALREADY_EXISTS ]; then
100
104
composer require --no-interaction --ignore-platform-reqs --no-scripts ibexa/$MY_PACKAGE"$MY_BRANCH as $DXP_VERSION";
101
105
fi;
102
106
```
107
+
108
+
### Run as GitHub Action
109
+
110
+
#### Using `gh`
111
+
112
+
With [GitHub CLI `gh`](https://cli.github.com/), you can trigger a GitHub Action workflow to build the API References
113
+
114
+
```bash
115
+
gh workflow run api_refs.yaml -f version=<tag> -f use_dev_version=<false|true> --ref <branch>
116
+
```
117
+
118
+
`-f version=<tag>` to pass the Ibexa DXP version tag for which the API References are built.
119
+
`-f use_dev_version=<false|true>` to use the released version designed by the tag, or to use the development version (`v5.0.x-dev`) for an incoming tag.
120
+
`--ref <branch>` to use a `api_refs.yaml` workflow from a given branch instead of the default branch (`5.0`).
0 commit comments