Skip to content

Commit

Permalink
Merge pull request #51 from xmtp/test-typedocs
Browse files Browse the repository at this point in the history
Prep to generate TypeDocs
  • Loading branch information
rygine authored Aug 17, 2023
2 parents cb7d916 + 9a49250 commit 2c5f9aa
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docs

on:
push:
branches:
- main

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.14.0
cache: "yarn"
- name: Install Yarn v3
run: |
corepack enable
corepack prepare yarn@3.4.1 --activate
- name: Install dependencies
run: yarn
- name: Build typedocs
run: |
cd packages/react-sdk
yarn typedoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/react-sdk/docs
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ storybook-static
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# typedocs
docs
4 changes: 3 additions & 1 deletion packages/react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"format": "yarn format:base -w .",
"generate:types": "tsup --dts-only",
"test": "vitest run --passWithNoTests",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"typedoc": "typedoc"
},
"dependencies": {
"@xmtp/content-type-reaction": "^1.0.1",
Expand Down Expand Up @@ -100,6 +101,7 @@
"prettier": "^3.0.0",
"react-dom": "^18.2.0",
"tsup": "^7.1.0",
"typedoc": "^0.24.8",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vite-tsconfig-paths": "^4.2.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/react-sdk/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": ["src/index.ts"],
"out": "docs",
"excludeExternals": true,
"excludePrivate": true,
"excludeProtected": true
}
75 changes: 75 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7577,6 +7577,7 @@ __metadata:
react: ^18.2.0
react-dom: ^18.2.0
tsup: ^7.1.0
typedoc: ^0.24.8
typescript: ^5.1.6
uuid: ^9.0.0
vite: ^4.4.9
Expand Down Expand Up @@ -7826,6 +7827,13 @@ __metadata:
languageName: node
linkType: hard

"ansi-sequence-parser@npm:^1.1.0":
version: 1.1.1
resolution: "ansi-sequence-parser@npm:1.1.1"
checksum: ead5b15c596e8e85ca02951a844366c6776769dcc9fd1bd3a0db11bb21364554822c6a439877fb599e7e1ffa0b5f039f1e5501423950457f3dcb2f480c30b188
languageName: node
linkType: hard

"ansi-styles@npm:^3.2.1":
version: 3.2.1
resolution: "ansi-styles@npm:3.2.1"
Expand Down Expand Up @@ -13140,6 +13148,13 @@ __metadata:
languageName: node
linkType: hard

"lunr@npm:^2.3.9":
version: 2.3.9
resolution: "lunr@npm:2.3.9"
checksum: 176719e24fcce7d3cf1baccce9dd5633cd8bdc1f41ebe6a180112e5ee99d80373fe2454f5d4624d437e5a8319698ca6837b9950566e15d2cae5f2a543a3db4b8
languageName: node
linkType: hard

"lz-string@npm:^1.4.4":
version: 1.4.4
resolution: "lz-string@npm:1.4.4"
Expand Down Expand Up @@ -13258,6 +13273,15 @@ __metadata:
languageName: node
linkType: hard

"marked@npm:^4.3.0":
version: 4.3.0
resolution: "marked@npm:4.3.0"
bin:
marked: bin/marked.js
checksum: 0db6817893952c3ec710eb9ceafb8468bf5ae38cb0f92b7b083baa13d70b19774674be04db5b817681fa7c5c6a088f61300815e4dd75a59696f4716ad69f6260
languageName: node
linkType: hard

"mdast-util-definitions@npm:^4.0.0":
version: 4.0.0
resolution: "mdast-util-definitions@npm:4.0.0"
Expand Down Expand Up @@ -13436,6 +13460,15 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^9.0.0":
version: 9.0.3
resolution: "minimatch@npm:9.0.3"
dependencies:
brace-expansion: ^2.0.1
checksum: 253487976bf485b612f16bf57463520a14f512662e592e95c571afdab1442a6a6864b6c88f248ce6fc4ff0b6de04ac7aa6c8bb51e868e99d1d65eb0658a708b5
languageName: node
linkType: hard

"minimist-options@npm:^4.0.2":
version: 4.1.0
resolution: "minimist-options@npm:4.1.0"
Expand Down Expand Up @@ -16302,6 +16335,18 @@ __metadata:
languageName: node
linkType: hard

"shiki@npm:^0.14.1":
version: 0.14.3
resolution: "shiki@npm:0.14.3"
dependencies:
ansi-sequence-parser: ^1.1.0
jsonc-parser: ^3.2.0
vscode-oniguruma: ^1.7.0
vscode-textmate: ^8.0.0
checksum: a4dd98e3b2a5dd8be207448f111ffb9ad2ed6c530f215714d8b61cbf91ec3edbabb09109b8ec58a26678aacd24e8161d5a9bc0c1fa1b4f64b27ceb180cbd0c89
languageName: node
linkType: hard

"side-channel@npm:^1.0.4":
version: 1.0.4
resolution: "side-channel@npm:1.0.4"
Expand Down Expand Up @@ -17389,6 +17434,22 @@ __metadata:
languageName: node
linkType: hard

"typedoc@npm:^0.24.8":
version: 0.24.8
resolution: "typedoc@npm:0.24.8"
dependencies:
lunr: ^2.3.9
marked: ^4.3.0
minimatch: ^9.0.0
shiki: ^0.14.1
peerDependencies:
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x
bin:
typedoc: bin/typedoc
checksum: a46a14497f789fb3594e6c3af2e45276934ac46df40b7ed15a504ee51dc7a8013a2ffb3a54fd73abca6a2b71f97d3ec9ad356fa9aa81d29743e4645a965a2ae0
languageName: node
linkType: hard

"typescript@npm:^5.1.6":
version: 5.1.6
resolution: "typescript@npm:5.1.6"
Expand Down Expand Up @@ -17942,6 +18003,20 @@ __metadata:
languageName: node
linkType: hard

"vscode-oniguruma@npm:^1.7.0":
version: 1.7.0
resolution: "vscode-oniguruma@npm:1.7.0"
checksum: 53519d91d90593e6fb080260892e87d447e9b200c4964d766772b5053f5699066539d92100f77f1302c91e8fc5d9c772fbe40fe4c90f3d411a96d5a9b1e63f42
languageName: node
linkType: hard

"vscode-textmate@npm:^8.0.0":
version: 8.0.0
resolution: "vscode-textmate@npm:8.0.0"
checksum: 127780dfea89559d70b8326df6ec344cfd701312dd7f3f591a718693812b7852c30b6715e3cfc8b3200a4e2515b4c96f0843c0eacc0a3020969b5de262c2a4bb
languageName: node
linkType: hard

"w3c-xmlserializer@npm:^4.0.0":
version: 4.0.0
resolution: "w3c-xmlserializer@npm:4.0.0"
Expand Down

0 comments on commit 2c5f9aa

Please sign in to comment.