Skip to content

Commit

Permalink
docs: render also markdown for autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Sep 25, 2024
1 parent f2a3d9d commit 8800819
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/actions/publish-autodoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ runs:
- name: Merge manifests
shell: bash
run: ./gradlew mergeManifests
- name: Render markdown
- name: Render html
shell: bash
run: ./gradlew doc2html
- name: Render markdown
shell: bash
run: ./gradlew doc2md

- name: extract version
shell: bash
Expand All @@ -37,12 +40,15 @@ runs:
shell: bash
run: |
mkdir -p deploy/autodoc/${{ env.VERSION }}
cp build/*.json deploy/autodoc/${{ env.VERSION }}/autodoc.json
cp build/*.md deploy/autodoc/${{ env.VERSION }}/autodoc.md
cp build/*.html deploy/autodoc/${{ env.VERSION }}/index.html
- name: Render html for stable version
shell: bash
if: ${{ !endsWith( env.VERSION, '-SNAPSHOT') }}
run: cp deploy/autodoc/${{ env.VERSION }}/index.html deploy/autodoc/index.html
run: |
cp deploy/autodoc/${{ env.VERSION }}/* deploy/autodoc/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
fi
VERSION=$(cat $JSON_VERSION_FILE | jq '.[] | select(.maturity=="stable" or .maturity==null) | .version' | cut -d '"' -f 2)
./gradlew -PapiVersion=$VERSION -PapiTitle="${{ matrix.apiGroup }}" -PapiDescription="REST API documentation for the ${{ matrix.apiGroup }}" :mergeApiSpec --input=resources/openapi/yaml/${{ matrix.apiGroup }} --output=${{ matrix.apiGroup }}-new.yaml -q
./gradlew -PapiVersion=$VERSION -PapiTitle="${{ matrix.apiGroup }}" -PapiDescription="REST API documentation for the ${{ matrix.apiGroup }}" :mergeApiSpec --input=resources/openapi/yaml/${{ matrix.apiGroup }} --output=${{ matrix.apiGroup }}-new.yaml
git show origin/gh-pages:openapi/${{ matrix.apiGroup }}/${{ matrix.apiGroup }}.yaml > ${{ matrix.apiGroup }}.yaml
Expand Down

0 comments on commit 8800819

Please sign in to comment.