-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: publish generated docs to gh pages (#385)
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 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,33 @@ | ||
name: publish-gh-pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Create the docs directory locally in CI | ||
working-directory: packages/js | ||
run: yarn docs:html | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: packages/js/docs/ts |
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,23 @@ | ||
{ | ||
"out": "./docs/ts", | ||
"entryPoints": ["./src/index.ts"], | ||
"exclude": [ | ||
"**/*+(test|index).ts", | ||
"src/Modules/Verto/messages/**/*", | ||
"src/Modules/Verto/services/**/*", | ||
"src/Modules/Verto/tests/**/*", | ||
"src/Modules/Verto/util/**/*" | ||
], | ||
"plugin": ["typedoc-plugin-merge-modules"], | ||
"excludeExternals": true, | ||
"excludePrivate": true, | ||
"excludeProtected": true, | ||
"excludeNotDocumented": true, | ||
"githubPages": true, | ||
"excludeTags": ["@internalnote", "@internal"], | ||
"cleanOutputDir": true, | ||
"hideGenerator": true, | ||
"readme": "none", | ||
"gitRevision": "main", | ||
"disableSources": true | ||
} |