Skip to content

Commit ed952f8

Browse files
committed
Try to fix docs file links
1 parent 737bd68 commit ed952f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ jobs:
7171
- name: Rebuild docs for tag
7272
if: env.VERSION != 'devel'
7373
run: |
74-
./node_modules/.bin/typedoc --includeVersion --gitRevision ${{ github.ref_name }} --out gh-pages/${VERSION}
74+
./node_modules/.bin/typedoc --gitRevision ${{ github.ref_name }} --out gh-pages/${VERSION} --sourceLinkTemplate https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/src/{path}:{line}
7575
node -p 'var all=fs.readdirSync("gh-pages",{withFileTypes:true}).flatMap(f=>f.isDirectory()&&!isNaN(f.name.charAt(0))?[f.name]:[]).sort(require("semver").rcompare);JSON.stringify({all,stable:all.filter(s=>!s.includes("-"))})' > gh-pages/_data/versions.json
7676
7777
- name: Rebuild docs for devel
7878
if: env.VERSION == 'devel'
7979
run: |
80-
./node_modules/.bin/typedoc --gitRevision ${{ github.sha }} --out gh-pages/${VERSION}
80+
./node_modules/.bin/typedoc --gitRevision ${{ github.sha }} --out gh-pages/${VERSION} --sourceLinkTemplate https://github.com/${{ github.repository }}/blob/${{ github.sha }}/src/{path}:{line}
8181
8282
- name: Commit to gh-pages
8383
uses: EndBug/add-and-commit@v9

typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"excludeInternal": true,
1212
"excludeProtected": true,
1313
"excludePrivate": true,
14-
"includeVersion": false,
14+
"includeVersion": true,
1515
"entryPoints": ["src"],
1616
"entryPointStrategy": "expand",
1717
"validation": {

0 commit comments

Comments
 (0)