-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407: Add generation of API documentation
- Loading branch information
Showing
59 changed files
with
569 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Generating API documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'api-reference' | ||
|
||
jobs: | ||
docs: | ||
name: Generating API documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Cache phpDocumentor build files | ||
id: phpdocumentor-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .phpdoc/cache | ||
key: ${{ runner.os }}-phpdocumentor-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-phpdocumentor- | ||
- name: Build with documentation | ||
run: docker run --rm --volume "$(pwd):/data" phpdoc/phpdoc:3.4 -vv --template default | ||
|
||
- name: Upload documentation | ||
run: npx vercel deploy docs/api -t ${{ secrets.VERCEL_TOKEN }} --name php --scope temporal --prod --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<phpdocumentor | ||
configVersion="3" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://www.phpdoc.org" | ||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd" | ||
> | ||
<paths> | ||
<output>docs/api</output> | ||
<cache>.phpdoc/cache</cache> | ||
</paths> | ||
<version number="latest"> | ||
<api> | ||
<source dsn="."> | ||
<path>src</path> | ||
</source> | ||
<ignore hidden="true" symlinks="true"> | ||
<path>src/Internal/**/*</path> | ||
</ignore> | ||
</api> | ||
</version> | ||
</phpdocumentor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.