Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jul 19, 2023
1 parent 7658ef2 commit b864d35
Show file tree
Hide file tree
Showing 6 changed files with 12,586 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/docs_skeleton/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ yarn-error.log*

# ESLint
.eslintcache

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
diff --git a/dist/support/helpers.js b/dist/support/helpers.js
index 4346548126fcf7e3687f243ee53fd0456778c29c..73cefe121e927285d305d57e89f3c87f8d2fe289 100644
--- a/dist/support/helpers.js
+++ b/dist/support/helpers.js
@@ -42,7 +42,12 @@ function getReflectionHeadingLevel(reflection, groupByReflections) {
exports.getReflectionHeadingLevel = getReflectionHeadingLevel;
function getReflectionTitle(reflection, fullname = false, typeParams = false) {
var _a, _b;
- const md = [
+ const md = reflection.kindOf([
+ typedoc_1.ReflectionKind.Module,
+ typedoc_1.ReflectionKind.Namespace,
+ ]) ? [
+ "`langchain/" + (fullname ? reflection.getFullName() : reflection.name) + "`",
+ ] : [
(0, utils_1.escapeChars)(fullname ? reflection.getFullName() : reflection.name),
];
if ((_a = reflection.signatures) === null || _a === void 0 ? void 0 : _a.length) {
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';
}
1 change: 1 addition & 0 deletions docs/docs_skeleton/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const config = {
alias: {
"@examples": examplesPath,
"@snippets": snippetsPath,
react: path.resolve('./node_modules/react'),
},
},
module: {
Expand Down
3 changes: 3 additions & 0 deletions docs/docs_skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"last 1 safari version"
]
},
"resolutions": {
"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"
},
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit b864d35

Please sign in to comment.