-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CHA-188] Added typedoc to package reqs. #107
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
895439d
Added typedoc to package reqs.
splindsay-92 8d40f15
Corrected IAM role to match infra definition of ably-chat-js
splindsay-92 e0daa82
Added typedoc config
splindsay-92 a49ef79
Added validation requirements.
splindsay-92 e98d455
Set role to ably-labs
splindsay-92 761e795
Updated to new configure-aws-credentials@v2 action.
splindsay-92 b0c59f4
Fixing the most ridiculous typo
splindsay-92 82005a6
Updated landing-page.md
splindsay-92 a20f2f0
Updated github perms
splindsay-92 0b460f6
Updated to sdk-upload-action@v2
splindsay-92 a03c3bf
Added docs action to npm
splindsay-92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,43 @@ | ||
name: API Reference | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
deployments: write | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install Package Dependencies | ||
run: npm ci | ||
|
||
- name: Build Documentation | ||
run: npm run docs | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-region: eu-west-2 | ||
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-labs-sdk-builds-ably-chat-js | ||
role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | ||
|
||
- name: Upload Documentation | ||
uses: ably/sdk-upload-action@v2 | ||
with: | ||
sourcePath: typedoc/generated | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
artifactName: typedoc |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,25 @@ | ||
{ | ||
"$schema": "https://typedoc.org/schema.json", | ||
"entryPoints": ["src/index.ts"], | ||
"out": "typedoc/generated", | ||
"readme": "typedoc/landing-page.md", | ||
"tsconfig": "tsconfig.base.json", | ||
"treatWarningsAsErrors": false, | ||
"includeVersion": true, | ||
"validation": true, | ||
"requiredToBeDocumented": [ | ||
"Accessor", | ||
"Class", | ||
"Constructor", | ||
"Enum", | ||
"EnumMember", | ||
"Function", | ||
"Interface", | ||
"Method", | ||
"Parameter", | ||
"Property", | ||
"TypeAlias", | ||
"Variable", | ||
"Namespace" | ||
] | ||
} |
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,10 @@ | ||
# Ably Chat JavaScript Client Library SDK API Reference | ||
|
||
The JavaScript Client Library SDK supports chat functionality over Ably. The JavaScript API references are generated | ||
from the [Ably Chat JavaScript Client Library SDK source code](https://github.com/ably-labs/ably-chat-js) | ||
using [TypeDoc](https://typedoc.org) and structured by classes. | ||
|
||
The Chat SDK is built on top of the Ably Realtime SDK and provides a higher-level API for building chat applications. It | ||
includes features such as entering/leaving conversations, sending messages, room reactions, presence, typing indicators, | ||
and more. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set to false as we have a lot of things to fix documentation-wise, but I've added all the validation in anyway so when running it locally you can just flick the switch and see what needs to be fixed.