Skip to content

Commit fb08e29

Browse files
committed
Merge branch 'update-docs-script'
2 parents 9950edf + ff36214 commit fb08e29

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"fs-extra": "^9.1.0",
5858
"path": "^0.12.7",
5959
"rimraf": "^5.0.0",
60-
"typedoc": "^0.28.14",
6160
"typescript": "^5.6.0"
6261
}
6362
}

scripts/generate-docs.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ const pkg = JSON.parse(
1414
const name = `${pkg.name}@${pkg.version}`;
1515
const typedocConfig = path.join(__dirname, "..", "typedoc.json");
1616

17+
// Resolve typedoc from background-geolocation-types so that the custom plugins
18+
// (gitlink, mediaplayer, site) are loaded by the same TypeDoc version they were
19+
// built against, avoiding the "TypeDoc loaded multiple times" warning.
20+
const typedocBin = path.resolve(
21+
__dirname, "..", "../../background-geolocation-types/node_modules/.bin/typedoc"
22+
);
23+
1724
const child = spawn(
18-
"typedoc",
25+
typedocBin,
1926
["--options", typedocConfig, "--name", name],
2027
{ stdio: "inherit" }
2128
);

0 commit comments

Comments
 (0)