Skip to content

5.0: Build REST API Ref W/ PHP API Ref #2744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 50 commits into
base: 5.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
1ccfa9f
5.0: Build REST API Ref W/ PHP API Ref
adriendupuis May 13, 2025
0a078f2
5.0: Build REST API Ref W/ PHP API Ref
adriendupuis May 14, 2025
b866d07
api_refs.yaml: 4.6 support
adriendupuis May 14, 2025
3653819
BuildREST API on 4.6 too
adriendupuis May 14, 2025
a781478
Hack to test 5.0
adriendupuis May 14, 2025
e87cd6b
Merge branch '5.0' into 5.0-api-refs
adriendupuis Jul 3, 2025
ae3a8ea
.phpdoc/template: revert duplicate fix #2584
adriendupuis Jul 3, 2025
395c7fb
api_refs.sh merged w/ 5.0
adriendupuis Jul 3, 2025
a187a15
Clean RAML
adriendupuis Jul 3, 2025
ce47ab3
rest_api_reference.html generated from Ibexa DXP
adriendupuis Jul 3, 2025
4e65e10
rest_api_reference.html generated from Ibexa DXP
adriendupuis Jul 3, 2025
eb401dc
rest_api_reference.html generated from Ibexa DXP
adriendupuis Jul 4, 2025
930adb1
api_refs.sh: Fix DXP install; Redocly config
adriendupuis Jul 4, 2025
25a40ff
Regenerate API References HTML
adriendupuis Jul 4, 2025
0067174
Resync .phpdoc
adriendupuis Jul 4, 2025
c551c65
Regenerate API References HTML
adriendupuis Jul 4, 2025
9200f29
api_refs.sh: Add Ibexa logo
adriendupuis Jul 4, 2025
a39891e
api_refs.sh: Add Ibexa favicon
adriendupuis Jul 4, 2025
00dc462
Regenerate API References HTML
adriendupuis Jul 4, 2025
c0a7118
REST API Ref set JSON before XML
adriendupuis Jul 7, 2025
c54968b
REST API Ref set JSON before XML
adriendupuis Jul 7, 2025
e0472a9
redocly.yaml: resize logo
adriendupuis Jul 9, 2025
6c76238
Regenerate API References HTML
adriendupuis Jul 9, 2025
1a76fb3
api_refs.yaml: Fix package-edition-map.twig path
adriendupuis Jul 16, 2025
c0be681
api_refs.sh: 5.0.0-rc1 test
adriendupuis Jul 17, 2025
7f0ec5c
api_refs.sh: 5.0.0-rc1 test
adriendupuis Jul 17, 2025
e6d99cf
api_refs.yaml: Fix rest_api_reference.html path
adriendupuis Jul 17, 2025
7afcbae
api_refs.sh: Force recipes
adriendupuis Jul 17, 2025
a02cc3f
api_refs.sh: 5.0.0-rc1 test
adriendupuis Jul 17, 2025
5c97ee3
PHP API Ref HTML
adriendupuis Jul 17, 2025
17811d3
REST API Ref HTML
adriendupuis Jul 17, 2025
d14196e
ibexa_dxp_v4.6: Full abs link to 4.6 PHP API Ref
adriendupuis Jul 17, 2025
a5c8e04
api_refs.yaml: Better PR title and desc
adriendupuis Jul 17, 2025
c7a8d73
PHP API Ref HTML
adriendupuis Jul 17, 2025
f6c2e16
REST API Ref HTML
adriendupuis Jul 17, 2025
144048c
ibexa_dxp_v4.6: Full abs link to 4.6 PHP API Ref
adriendupuis Jul 17, 2025
625eb8a
PHP API Ref HTML (changes missed by cherry-pick)
adriendupuis Jul 17, 2025
051cf82
REST API Ref: Clickable logo
adriendupuis Jul 17, 2025
8430468
REST API Ref: Clickable logo
adriendupuis Jul 17, 2025
f3ecbf9
Merge branch '5.0-api-refs-extract' into 5.0-api-refs
adriendupuis Jul 17, 2025
b7d9c52
Merge branch 'api_refs_v5.0.0-rc1' into 5.0-api-refs
adriendupuis Jul 18, 2025
e207e55
REST API Ref: logo margin
adriendupuis Jul 18, 2025
d7624b1
api_refs.yaml: Check if there is something to commit
adriendupuis Jul 18, 2025
b02ac7d
openapi.php: cleanup
adriendupuis Jul 18, 2025
fc75467
Merge 5.0 into 5.0-api-refs
adriendupuis Jul 21, 2025
9b1109f
New REST API Reference
adriendupuis Jul 21, 2025
fbd8c4c
Remove old REST API Ref tool
adriendupuis Jul 21, 2025
0c5a211
Move PHP API Ref to API Refs
adriendupuis Jul 21, 2025
e44809f
Update API Refs
adriendupuis Jul 21, 2025
3064a44
Merge branch '5.0-api-refs-tmp' into 5.0-api-refs
adriendupuis Jul 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 35 additions & 10 deletions .github/workflows/api_refs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
version="${{ inputs.version }}"
base_branch="$(echo $version | sed 's/v\(.*\..*\)\..*/\1/')"
work_branch="api_refs_$version"
#TMP
if [[ '5.0' == $base_branch ]]; then
base_branch='5.0-api-refs'
fi
#/TMP
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "base_branch=$base_branch" >> "$GITHUB_OUTPUT"
echo "work_branch=$work_branch" >> "$GITHUB_OUTPUT"
Expand All @@ -34,32 +39,52 @@ jobs:
with:
coverage: none

- name: Set up node
uses: actions/setup-node@v4
- name: Install Redocly CLI
run: npm install -g @redocly/cli@latest

- name: Build API Refs
env:
SATIS_NETWORK_KEY: ${{ secrets.SATIS_NETWORK_KEY }}
SATIS_NETWORK_TOKEN: ${{ secrets.SATIS_NETWORK_TOKEN }}
BASE_BRANCH: ${{ steps.version_and_branches.outputs.base_branch }}
run: |
composer config --global http-basic.updates.ibexa.co $SATIS_NETWORK_KEY $SATIS_NETWORK_TOKEN
#TODO: On 5.0, update tool to handle both PHP & REST APIs
tools/php_api_ref/phpdoc.sh
# Fix escape character:
perl -pi -e 's/\e/\\E/g' tools/php_api_ref/.phpdoc/template/package-edition-map.twig
if [[ '4.6' != $BASE_BRANCH ]]; then
tools/api_refs/api_refs.sh
# Fix escape character:
perl -pi -e 's/\e/\\E/g' tools/api_refs/.phpdoc/template/package-edition-map.twig
else
tools/php_api_ref/phpdoc.sh
# Fix escape character:
perl -pi -e 's/\e/\\E/g' tools/api_refs/php_api_ref/template/package-edition-map.twig
cd tools/raml2html/; composer install; cd -;
php tools/raml2html/raml2html.php build --non-standard-http-methods=COPY,MOVE,PUBLISH,SWAP -t default -o docs/api/rest_api/rest_api_reference/ docs/api/rest_api/rest_api_reference/input/ibexa.raml
fi

- name: Commit
env:
BASE_BRANCH: ${{ steps.version_and_branches.outputs.base_branch }}
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add docs/api/php_api/php_api_reference/ tools/php_api_ref/.phpdoc/template/package-edition-map.twig
git commit -m "PHP API Ref HTML"
#TODO: git add doc/api/rest_api/rest_api_reference/rest_api_reference.html
#TODO: git commit -m "REST API Ref HTML"
git add docs/api/php_api/php_api_reference/
if [[ '4.6' != $BASE_BRANCH ]]; then
git add tools/api_refs/.phpdoc/template/package-edition-map.twig
else
git add tools/php_api_ref/.phpdoc/template/package-edition-map.twig
fi
git diff-index --quiet --cached HEAD || git commit -m "PHP API Ref HTML"
git add docs/api/rest_api/rest_api_reference/rest_api_reference.html
git diff-index --quiet --cached HEAD || git commit -m "REST API Ref HTML"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.EZROBOT_PAT }}
title: "PHP API Ref ${{ steps.version_and_branches.outputs.version }}"
body: "PHP API Reference update for ${{ steps.version_and_branches.outputs.version }}"
title: "API Refs ${{ steps.version_and_branches.outputs.version }}"
body: "PHP API & REST API References update for ${{ steps.version_and_branches.outputs.version }}"
branch: "${{ steps.version_and_branches.outputs.work_branch }}"
base: "${{ steps.version_and_branches.outputs.base_branch }}"
draft: false
Expand Down

This file was deleted.

This file was deleted.

79 changes: 0 additions & 79 deletions docs/api/rest_api/rest_api_reference/assets/css/github-gist.css

This file was deleted.

Loading
Loading