-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate code documentation (#185)
Signed-off-by: Jérôme Benoit <[email protected]>
- Loading branch information
1 parent
ea2384f
commit 9a7a3ac
Showing
38 changed files
with
2,422 additions
and
333 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 |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-release: | ||
runs-on: ubuntu-latest | ||
|
@@ -104,3 +107,41 @@ jobs: | |
- run: npx changelogithub | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
publish-documentation: | ||
runs-on: ubuntu-latest | ||
needs: changelog | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Generate documentation | ||
run: | | ||
pnpm install --ignore-scripts --frozen-lockfile | ||
pnpm typedoc | ||
- name: Commit and push changes | ||
if: github.ref == 'refs/heads/${{ github.event.repository.default_branch }}' | ||
env: | ||
COMMIT_MESSAGE: 'docs: publish documentation' | ||
COMMIT_AUTHOR: Documentation Bot | ||
COMMIT_EMAIL: [email protected] | ||
run: | | ||
git config --local user.name "${{ env.COMMIT_AUTHOR }}" | ||
git config --local user.email "${{ env.COMMIT_EMAIL }}" | ||
git pull | ||
git add ./docs | ||
git commit -a -m "${{ env.COMMIT_MESSAGE }}" | ||
git push |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. |
Oops, something went wrong.