Skip to content

Commit

Permalink
Update typedoc, typedoc markdown plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 18, 2023
1 parent ea6ad16 commit 90d6740
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/dist/theme.js b/dist/theme.js
index f6eaa7c35c0b377a019f4f948531917eef5fe302..dd9e5ac90b4f86740fca3d0f0b55369efcfcded6 100644
--- a/dist/theme.js
+++ b/dist/theme.js
@@ -131,11 +131,6 @@ class MarkdownTheme extends typedoc_1.Theme {
parts.splice(namespaceIndex, 0, this.mappings[typedoc_1.ReflectionKind.Namespace].directory);
}
});
- if (reflection.kindOf(typedoc_1.ReflectionKind.Namespace))
- parts[parts.length - 1] = `${typedoc_1.ReflectionKind.singularString(typedoc_1.ReflectionKind.Namespace).toLowerCase()}.${parts[parts.length - 1]}`;
- }
- if (!isModuleOrNamespace) {
- parts[parts.length - 1] = `${typedoc_1.ReflectionKind.singularString(reflection.kind).toLowerCase()}.${parts[parts.length - 1]}`;
}
return parts.join(this.flattenOutputFiles ? '.' : '/') + '.md';
}
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"@mdx-js/react": "^1.6.22",
"@mendable/search": "^0.0.83",
"clsx": "^1.2.1",
"json-loader": "^0.5.7",
"process": "^0.11.10",
"raw-loader": "^4.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"webpack": "^5.75.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.2",
"docusaurus-plugin-typedoc": "^0.18.0",
"docusaurus-plugin-typedoc": "next",
"eslint": "^8.19.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
Expand All @@ -43,8 +43,8 @@
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1",
"typedoc": "^0.23.28",
"typedoc-plugin-markdown": "^3.14.0"
"typedoc": "^0.24.4",
"typedoc-plugin-markdown": "next"
},
"browserslist": {
"production": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"turbo": "latest"
},
"resolutions": {
"dpdm@^3.12.0": "patch:dpdm@npm%3A3.12.0#./.yarn/patches/dpdm-npm-3.12.0-0dfdd8e3b8.patch"
"dpdm@^3.12.0": "patch:dpdm@npm%3A3.12.0#./.yarn/patches/dpdm-npm-3.12.0-0dfdd8e3b8.patch",
"typedoc-plugin-markdown@next": "patch:typedoc-plugin-markdown@npm%3A4.0.0-next.6#./.yarn/patches/typedoc-plugin-markdown-npm-4.0.0-next.6-96b4b47746.patch"
},
"lint-staged": {
"**/*.{ts,tsx}": [
Expand Down
119 changes: 44 additions & 75 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11445,7 +11445,7 @@ __metadata:
"@mdx-js/react": ^1.6.22
"@mendable/search": ^0.0.83
clsx: ^1.2.1
docusaurus-plugin-typedoc: ^0.18.0
docusaurus-plugin-typedoc: next
eslint: ^8.19.0
eslint-config-airbnb: ^19.0.4
eslint-config-prettier: ^8.5.0
Expand All @@ -11454,13 +11454,13 @@ __metadata:
eslint-plugin-jsx-a11y: ^6.6.0
eslint-plugin-react: ^7.30.1
eslint-plugin-react-hooks: ^4.6.0
json-loader: ^0.5.7
prettier: ^2.7.1
process: ^0.11.10
raw-loader: ^4.0.2
react: ^17.0.2
react-dom: ^17.0.2
typedoc: ^0.23.28
typedoc-plugin-markdown: ^3.14.0
typedoc: ^0.24.4
typedoc-plugin-markdown: next
webpack: ^5.75.0
languageName: unknown
linkType: soft
Expand All @@ -11483,13 +11483,12 @@ __metadata:
languageName: node
linkType: hard

"docusaurus-plugin-typedoc@npm:^0.18.0":
version: 0.18.0
resolution: "docusaurus-plugin-typedoc@npm:0.18.0"
"docusaurus-plugin-typedoc@npm:next":
version: 1.0.0-next.5
resolution: "docusaurus-plugin-typedoc@npm:1.0.0-next.5"
peerDependencies:
typedoc: ">=0.23.0"
typedoc-plugin-markdown: ">=3.13.0"
checksum: e5e8780888ad07e71e9c0a98024f4bee6e3e520c7a3417d6b4951aa91c0fb63caa19d1cd5e0712b75d0add7c1fabe2df36b910e3ecb6e4a914c679c0ff75fc16
typedoc-plugin-markdown: ">=4.0.0-next.6"
checksum: 0386e62a3c77cc8aed23558e4630a1b80cd2bae723b93e872207a04538ee49497a39cbcdbb05824a4de6c8216914953dc30b8ae0ed01ed086c0d35a4eb2a0efb
languageName: node
linkType: hard

Expand Down Expand Up @@ -14261,24 +14260,6 @@ __metadata:
languageName: node
linkType: hard

"handlebars@npm:^4.7.7":
version: 4.7.7
resolution: "handlebars@npm:4.7.7"
dependencies:
minimist: ^1.2.5
neo-async: ^2.6.0
source-map: ^0.6.1
uglify-js: ^3.1.4
wordwrap: ^1.0.0
dependenciesMeta:
uglify-js:
optional: true
bin:
handlebars: bin/handlebars
checksum: 1e79a43f5e18d15742977cb987923eab3e2a8f44f2d9d340982bcb69e1735ed049226e534d7c1074eaddaf37e4fb4f471a8adb71cddd5bc8cf3f894241df5cee
languageName: node
linkType: hard

"harmony-reflect@npm:^1.4.6":
version: 1.6.2
resolution: "harmony-reflect@npm:1.6.2"
Expand Down Expand Up @@ -16980,6 +16961,13 @@ __metadata:
languageName: node
linkType: hard

"json-loader@npm:^0.5.7":
version: 0.5.7
resolution: "json-loader@npm:0.5.7"
checksum: c7d054edf7fd5338847f49008df3cdf744f64507584dff3e6d28f500604eedd9130ca1639caa61747b36ab141e7e8db0e86f8514b2244b6d8b0eb634f1154875
languageName: node
linkType: hard

"json-parse-even-better-errors@npm:^2.3.0, json-parse-even-better-errors@npm:^2.3.1":
version: 2.3.1
resolution: "json-parse-even-better-errors@npm:2.3.1"
Expand Down Expand Up @@ -17877,7 +17865,7 @@ __metadata:
languageName: node
linkType: hard

"marked@npm:^4.2.12":
"marked@npm:^4.3.0":
version: 4.3.0
resolution: "marked@npm:4.3.0"
bin:
Expand Down Expand Up @@ -18197,12 +18185,12 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^7.1.3":
version: 7.4.5
resolution: "minimatch@npm:7.4.5"
"minimatch@npm:^9.0.0":
version: 9.0.0
resolution: "minimatch@npm:9.0.0"
dependencies:
brace-expansion: ^2.0.1
checksum: dfb82497bd9007d3dde3f5e033ea4e314e221186ece26863521a8fa955e73f58f0fd11704b79eec37ba29be460be0cf92a7a6455dd41d5763b5b12072c6013c3
checksum: 7bd57899edd1d1b0560f50b5b2d1ea4ad2a366c5a2c8e0a943372cf2f200b64c256bae45a87a80915adbce27fa36526264296ace0da57b600481fe5ea3e372e5
languageName: node
linkType: hard

Expand Down Expand Up @@ -18557,7 +18545,7 @@ __metadata:
languageName: node
linkType: hard

"neo-async@npm:^2.6.0, neo-async@npm:^2.6.2":
"neo-async@npm:^2.6.2":
version: 2.6.2
resolution: "neo-async@npm:2.6.2"
checksum: deac9f8d00eda7b2e5cd1b2549e26e10a0faa70adaa6fdadca701cc55f49ee9018e427f424bac0c790b7c7e2d3068db97f3093f1093975f2acb8f8818b936ed9
Expand Down Expand Up @@ -21237,18 +21225,6 @@ __metadata:
languageName: node
linkType: hard

"raw-loader@npm:^4.0.2":
version: 4.0.2
resolution: "raw-loader@npm:4.0.2"
dependencies:
loader-utils: ^2.0.0
schema-utils: ^3.0.0
peerDependencies:
webpack: ^4.0.0 || ^5.0.0
checksum: 51cc1b0d0e8c37c4336b5318f3b2c9c51d6998ad6f56ea09612afcfefc9c1f596341309e934a744ae907177f28efc9f1654eacd62151e82853fcc6d37450e795
languageName: node
linkType: hard

"rc@npm:1.2.8, rc@npm:^1.2.8":
version: 1.2.8
resolution: "rc@npm:1.2.8"
Expand Down Expand Up @@ -24497,30 +24473,39 @@ __metadata:
languageName: node
linkType: hard

"typedoc-plugin-markdown@npm:^3.14.0":
version: 3.14.0
resolution: "typedoc-plugin-markdown@npm:3.14.0"
dependencies:
handlebars: ^4.7.7
"typedoc-plugin-markdown@npm:4.0.0-next.6":
version: 4.0.0-next.6
resolution: "typedoc-plugin-markdown@npm:4.0.0-next.6"
peerDependencies:
typedoc: ">=0.23.0"
checksum: 6205600052185b4b193ab8a253d9df5ccbc95002c948a07f9024bcd26f0f23fbcc089fda4d6b4c8f4172f4eaca2bf9c32129989f6baaace7261cf4a0e41c976b
prettier: ">=1.8.0"
typedoc: ">=0.24.0"
checksum: e672e162e68375b51e5f2e22d727c4359ae18884805450f5504cde76a6d2182b9ede9e6529c9f12041e23d5c8b9465445a2777b2cfce4fc31bb13a2de0944a94
languageName: node
linkType: hard

"typedoc@npm:^0.23.28":
version: 0.23.28
resolution: "typedoc@npm:0.23.28"
"typedoc-plugin-markdown@patch:typedoc-plugin-markdown@npm%3A4.0.0-next.6#./.yarn/patches/typedoc-plugin-markdown-npm-4.0.0-next.6-96b4b47746.patch::locator=langchainjs%40workspace%3A.":
version: 4.0.0-next.6
resolution: "typedoc-plugin-markdown@patch:typedoc-plugin-markdown@npm%3A4.0.0-next.6#./.yarn/patches/typedoc-plugin-markdown-npm-4.0.0-next.6-96b4b47746.patch::version=4.0.0-next.6&hash=ecd24f&locator=langchainjs%40workspace%3A."
peerDependencies:
prettier: ">=1.8.0"
typedoc: ">=0.24.0"
checksum: f5af63330d21848d01bc2b17c25063bbb2d011e2bd14f8b5739355c320cd7a22539a4134554676a56cbf8fc00ea38d2610c9aea7cdbf4d865672f148076a91ee
languageName: node
linkType: hard

"typedoc@npm:^0.24.4":
version: 0.24.4
resolution: "typedoc@npm:0.24.4"
dependencies:
lunr: ^2.3.9
marked: ^4.2.12
minimatch: ^7.1.3
marked: ^4.3.0
minimatch: ^9.0.0
shiki: ^0.14.1
peerDependencies:
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x
bin:
typedoc: bin/typedoc
checksum: 40eb4e207aac1b734e09400cf03f543642cc7b11000895198dd5a0d3166315759ccf4ac30a2915153597c5c186101c72bac2f1fc12b428184a9274d3a0e44c5e
checksum: c6762aff2b40eb574fc348c82921471fa1c1dc8a83adc284457aab30ea61768770be469f424340ab646944472653290578fd8e6308d55ec2e611577472067dae
languageName: node
linkType: hard

Expand Down Expand Up @@ -24660,15 +24645,6 @@ __metadata:
languageName: node
linkType: hard

"uglify-js@npm:^3.1.4":
version: 3.17.4
resolution: "uglify-js@npm:3.17.4"
bin:
uglifyjs: bin/uglifyjs
checksum: 7b3897df38b6fc7d7d9f4dcd658599d81aa2b1fb0d074829dd4e5290f7318dbca1f4af2f45acb833b95b1fe0ed4698662ab61b87e94328eb4c0a0d3435baf924
languageName: node
linkType: hard

"unbox-primitive@npm:^1.0.2":
version: 1.0.2
resolution: "unbox-primitive@npm:1.0.2"
Expand Down Expand Up @@ -26089,13 +26065,6 @@ __metadata:
languageName: node
linkType: hard

"wordwrap@npm:^1.0.0":
version: 1.0.0
resolution: "wordwrap@npm:1.0.0"
checksum: 2a44b2788165d0a3de71fd517d4880a8e20ea3a82c080ce46e294f0b68b69a2e49cff5f99c600e275c698a90d12c5ea32aff06c311f0db2eb3f1201f3e7b2a04
languageName: node
linkType: hard

"workbox-background-sync@npm:6.5.4":
version: 6.5.4
resolution: "workbox-background-sync@npm:6.5.4"
Expand Down

0 comments on commit 90d6740

Please sign in to comment.