-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Yarn and GitHub workflow config for building docs to GitHub Pages * Add type comments * Address TSDoc warnings * Lint fixes * Revert yarn lock changes --------- Co-authored-by: Antonio Antonino <[email protected]>
- Loading branch information
1 parent
1f2b4b6
commit 5c4a7a7
Showing
9 changed files
with
238 additions
and
62 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,24 @@ | ||
name: Build and Deploy API docs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install and Build | ||
run: | | ||
yarn install | ||
yarn build:docs | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs/api # The folder the action should deploy to. |
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 |
---|---|---|
|
@@ -22,3 +22,7 @@ cjs | |
# VSCode | ||
|
||
.vscode | ||
|
||
# doc | ||
**/docs/api | ||
/docs/api |
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,2 @@ | ||
declined: | ||
- "@kiltprotocol/dip-sdk" |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["src/**/*"], | ||
"typedocOptions": { | ||
"entryPointStrategy": "resolve", | ||
"entryPoints": ["src/runtime.ts", "src/sibling.ts", "src/utils.ts"], | ||
"out": "docs/api", | ||
"theme": "default", | ||
"exclude": [ | ||
"**/*spec.ts", | ||
"**/__mocks__/**", | ||
"**/tests/**", | ||
"**/*.js", | ||
"**/node_modules/**" | ||
], | ||
"excludeExternals": true, | ||
"excludePrivate": true, | ||
"hideGenerator": true, | ||
"name": "API Documentation", | ||
"readme": "README.md" | ||
} | ||
} |
Oops, something went wrong.