Skip to content

Commit

Permalink
Added typedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
spennyp committed Oct 16, 2024
1 parent 88b96b7 commit a05e286
Show file tree
Hide file tree
Showing 10 changed files with 489 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Deploy TypeDoc

on:
push:
branches:
- main # Triggers the workflow on pushes to the main branch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build documentation with TypeDoc
run: npm run docgen

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs # Directory containing TypeDoc output
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
docs
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"printWidth": 120,
"printWidth": 120
}
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Dapp Kit

Common utilities for building decentralized applications.

## Docs

http://papercliplabs.github.io/dapp-kit

## Installation in another project

```bash
pnpm install @paperclip-labs/dapp-kit
```

## Module Development

Install Dependencies
```bash
pnpm i
```

Build
```bash
pnpm build
```

Generate docs
```bash
pnpm docgen
```
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
}
},
"scripts": {
"build": "tsc"
"build": "tsc",
"docgen": "typedoc"
},
"keywords": [],
"author": "Paperclip Labs",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.3.11",
"prettier": "^3.3.3",
"typedoc": "^0.26.10",
"typescript": "^5.6.3"
},
"dependencies": {
Expand Down
Loading

0 comments on commit a05e286

Please sign in to comment.