File tree Expand file tree Collapse file tree 4 files changed +210
-8
lines changed Expand file tree Collapse file tree 4 files changed +210
-8
lines changed Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : read
11+ pages : write
12+ id-token : write
13+
1114
1215jobs :
1316 # #################
@@ -124,3 +127,30 @@ jobs:
124127 cache : ' npm'
125128 - run : npm ci
126129 - run : npm run lint:tests
130+
131+ build-doc :
132+ runs-on : ubuntu-latest
133+ steps :
134+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2
135+ - uses : actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3
136+ with :
137+ node-version : ' lts/*'
138+ registry-url : https://registry.npmjs.org/
139+ cache : ' npm'
140+ - run : npm ci
141+ - run : npm run doc
142+ - name : Upload artifact
143+ uses : actions/upload-pages-artifact@v2
144+ with :
145+ path : ./docs
146+
147+ deploy-doc :
148+ environment :
149+ name : github-pages
150+ url : ${{ steps.deployment.outputs.page_url }}
151+ runs-on : ubuntu-latest
152+ needs : build-doc
153+ steps :
154+ - name : Deploy to GitHub Pages
155+ id : deployment
156+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 3939 "prettier" : " prettier \" ts_src/**/*.ts\" \" test/**/*.ts\" --ignore-path ./.prettierignore" ,
4040 "prettierjs" : " prettier \" src/**/*.js\" --ignore-path ./.prettierignore" ,
4141 "test" : " npm run build && npm run format:ci && npm run lint && npm run nobuild:coverage" ,
42- "unit" : " npm run build && npm run nobuild:unit"
42+ "unit" : " npm run build && npm run nobuild:unit" ,
43+ "doc" : " npx typedoc"
4344 },
4445 "repository" : {
4546 "type" : " git" ,
5354 "bech32" : " ^2.0.0" ,
5455 "bip174" : " ^2.1.1" ,
5556 "bs58check" : " ^3.0.1" ,
57+ "typedoc" : " ^0.25.1" ,
5658 "typeforce" : " ^1.11.3" ,
5759 "varuint-bitcoin" : " ^1.1.2"
5860 },
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://typedoc.org/schema.json" ,
3+ "name" : " bitcoinjs-lib" ,
4+ "entryPoints" : [" ./ts_src" ],
5+ "out" : " docs" ,
6+ "searchCategoryBoosts" : {
7+ "Component" : 2 ,
8+ "Model" : 1.2
9+ },
10+ "searchGroupBoosts" : {
11+ "Classes" : 1.5
12+ },
13+ "visibilityFilters" : {},
14+ "hideGenerator" : true ,
15+ "excludePrivate" : true ,
16+ "includeVersion" : true
17+ }
You can’t perform that action at this time.
0 commit comments