File tree Expand file tree Collapse file tree 5 files changed +50
-37
lines changed Expand file tree Collapse file tree 5 files changed +50
-37
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 push :
66 tags :
7- - ' *'
7+ - ' *'
88
99jobs :
1010 deploy :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 with :
1515 submodules : true
1616 fetch-depth : 0
1717
1818 - name : Setup Node
19- uses : actions/setup-node@v2.1.2
19+ uses : actions/setup-node@v4
2020 with :
21- node-version : ' 18 .x'
21+ node-version : ' 20 .x'
2222
2323 - name : Cache dependencies
24- uses : actions/cache@v2
24+ uses : actions/cache@v4
2525 with :
2626 path : ~/.npm
2727 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {
2+ "plugins" : [" plugins/markdown" ],
3+ "markdown" : {
4+ "idInHeadings" : true
5+ },
6+ "tags" : {
7+ "allowUnknownTags" : true ,
8+ "dictionaries" : [" jsdoc" , " closure" ]
9+ },
10+ "source" : {
11+ "include" : [
12+ " src" ,
13+ " src/parser"
14+ ]
15+ },
16+ "opts" : {
17+ "destination" : " ./docs/0.2/" ,
18+ "encoding" : " utf8" ,
19+ "readme" : " ./README.md"
20+ },
21+ "templates" : {
22+ "default" : {
23+ "includeDate" : true
24+ },
25+ "cleverLinks" : false ,
26+ "monospaceLinks" : false
27+ }
28+ }
Original file line number Diff line number Diff line change 99 "lint" : " standard" ,
1010 "test" : " mocha --throw-deprecation test/spec.js" ,
1111 "changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md" ,
12- "docs" : " jsdoc -c .jsdoc.cjs " ,
12+ "docs" : " node scripts/update- jsdoc-config.js && jsdoc -c .jsdoc.json " ,
1313 "preversion" : " npm run lint && npm test" ,
1414 "version" : " npm run changelog"
1515 },
Original file line number Diff line number Diff line change 1+ import path from 'node:path'
2+ import url from 'node:url'
3+ import fs from 'node:fs'
4+
5+ const __dirname = path . dirname ( url . fileURLToPath ( import . meta. url ) )
6+ const packageRoot = path . dirname ( __dirname )
7+
8+ const packageFile = path . join ( packageRoot , 'package.json' )
9+ const packageConfig = JSON . parse ( fs . readFileSync ( packageFile , 'utf8' ) )
10+ const version = packageConfig . version . match ( / ( 0 \. ) * \d + / ) [ 0 ]
11+
12+ const jsdocFile = path . join ( packageRoot , '.jsdoc.json' )
13+ const jsdocConfig = fs . readFileSync ( jsdocFile , 'utf8' )
14+ const updatedJsdocConfig = jsdocConfig . replace ( / " \. \/ d o c s \/ .+ ?\/ " / , '"./docs/' + version + '/"' )
15+
16+ fs . writeFileSync ( jsdocFile , updatedJsdocConfig )
You can’t perform that action at this time.
0 commit comments