Skip to content

Commit

Permalink
Merge pull request #139 from xmtp/rygine/typedocs
Browse files Browse the repository at this point in the history
Add typedocs
  • Loading branch information
nplasterer authored Oct 17, 2023
2 parents 2bb527a + 327ab17 commit 36b22f5
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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
- name: Install dependencies
run: npm ci
- name: Build typedocs
run: npm run typedoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,6 @@ android/keystores/debug.keystore

# Expo
.expo/*

# Typedocs
docs/
90 changes: 89 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"pretty": "npx prettier '**/*.{js,ts,tsx}' --write",
"expo-module": "expo-module",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"typedoc": "typedoc"
},
"keywords": [
"react-native",
Expand Down Expand Up @@ -50,7 +51,8 @@
"@types/react-native": "^0.70.6",
"expo-module-scripts": "^3.0.4",
"expo-modules-core": "^1.5.9",
"prettier": "^3.0.0"
"prettier": "^3.0.0",
"typedoc": "^0.25.2"
},
"peerDependencies": {
"expo": "*",
Expand Down
8 changes: 8 additions & 0 deletions 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
}

0 comments on commit 36b22f5

Please sign in to comment.