Skip to content

Commit 3c75af8

Browse files
committed
Switch to kind router to avoid unnecessary link breakage
1 parent d581d2c commit 3c75af8

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.yarn/patches/typedoc-npm-0.28.11-18b71eb2e0.patch

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,19 @@ index 1f5ab57d619ff2a20f4b59e26d8d234f6553d9af..e879fe67665906ff2b7c901737bc4da9
2828
if (reflection instanceof ReferenceReflection &&
2929
groupReferencesByType) {
3030
diff --git a/dist/lib/output/router.js b/dist/lib/output/router.js
31-
index 2dadd8df70cefca52fb2d1cc104c8bf5783d1195..dbcca7511f9c6ae453cfb5792ddc3a9dab398fda 100644
31+
index 2dadd8df70cefca52fb2d1cc104c8bf5783d1195..50c5f263740b52639681baa16abce8ccec629c6b 100644
3232
--- a/dist/lib/output/router.js
3333
+++ b/dist/lib/output/router.js
34-
@@ -396,6 +396,8 @@ export class StructureRouter extends BaseRouter {
34+
@@ -359,6 +359,8 @@ export class KindRouter extends BaseRouter {
35+
reflection = reflection.parent;
36+
parts.unshift(createNormalizedUrl(reflection.name));
37+
}
38+
+ const prefix = createNormalizedUrl("@langchain/");
39+
+ if (parts[0].startsWith(prefix)) parts[0] = parts[0].slice(prefix.length);
40+
const baseName = parts.join(".");
41+
return `${dir}/${baseName}`;
42+
}
43+
@@ -396,6 +398,8 @@ export class StructureRouter extends BaseRouter {
3544
reflection = reflection.parent;
3645
parts.unshift(...reflection.name.split("/").map(createNormalizedUrl));
3746
}

docs/typedoc.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"instance-first",
1111
"alphabetical"
1212
],
13-
"router": "structure-dir",
1413
"entryPoints": [
1514
"../libs/checkpoint",
1615
"../libs/checkpoint-mongodb",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14914,7 +14914,7 @@ __metadata:
1491414914

1491514915
"typedoc@patch:typedoc@npm%3A0.28.11#~/.yarn/patches/typedoc-npm-0.28.11-18b71eb2e0.patch":
1491614916
version: 0.28.11
14917-
resolution: "typedoc@patch:typedoc@npm%3A0.28.11#~/.yarn/patches/typedoc-npm-0.28.11-18b71eb2e0.patch::version=0.28.11&hash=dcfdd7"
14917+
resolution: "typedoc@patch:typedoc@npm%3A0.28.11#~/.yarn/patches/typedoc-npm-0.28.11-18b71eb2e0.patch::version=0.28.11&hash=dd8f27"
1491814918
dependencies:
1491914919
"@gerrit0/mini-shiki": "npm:^3.9.0"
1492014920
lunr: "npm:^2.3.9"
@@ -14925,7 +14925,7 @@ __metadata:
1492514925
typescript: 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x
1492614926
bin:
1492714927
typedoc: bin/typedoc
14928-
checksum: 10/d96e794616da687d400071a9d2d4bb4fcfeadef62158079a035742e938575f6c7a6ab542497e3c7e4c3c68a23cb21eacd6224b22cceb3ba996cd02e544470615
14928+
checksum: 10/b4482b8d11693b22d0174a0caa5210b7cd798920758b258229399dcb434e3468d6ff59f4c618afe5fb359ae82f35f28eef8a9f13d6a74bed999a35cafd45834e
1492914929
languageName: node
1493014930
linkType: hard
1493114931

0 commit comments

Comments
 (0)