🎥 Make videos programmatically with React
Docs: Scope library directory expansion to its exact source file
Igor Samokhovetsd4af0a68c3c9
diff --git a/packages/docs/src/raw-markdown/replace-components.ts b/packages/docs/src/raw-markdown/replace-components.tsindex 881e45295a..46eeeb1dfa 100644--- a/packages/docs/src/raw-markdown/replace-components.ts+++ b/packages/docs/src/raw-markdown/replace-components.ts@@ -138,7 +138,13 @@ const getInstallationMarkdown = (pkg: string) => {};const studioApiPath = path.join('docs', 'studio', 'api.mdx');-const thirdPartyElementsPath = path.join('elements', 'libraries.mdx');+const thirdPartyElementsPath = path.resolve(+ __dirname,+ '..',+ '..',+ 'elements',+ 'libraries.mdx',+);const renderElementLibraryMarkdown = (attributes: string) => {const categoryAttribute = getStringAttribute({@@ -186,7 +192,7 @@ const rawMarkdownComponentReplacements: readonly RawMarkdownComponentReplacement{componentName: 'ThirdPartyElementLibraries',appliesTo: (sourcePath) =>- path.normalize(sourcePath).endsWith(thirdPartyElementsPath),+ path.resolve(sourcePath) === thirdPartyElementsPath,render: () =>thirdPartyElementLibraries.map(