diff --git a/docs/docs-beta/src/components/CodeExample.tsx b/docs/docs-beta/src/components/CodeExample.tsx index a4a73b453ec58..50f2bf7bb019e 100644 --- a/docs/docs-beta/src/components/CodeExample.tsx +++ b/docs/docs-beta/src/components/CodeExample.tsx @@ -7,7 +7,6 @@ interface CodeExampleProps { title?: string; lineStart?: number; lineEnd?: number; - pathPrefix?: string; } /** @@ -92,17 +91,9 @@ const CodeExample: React.FC = ({...props}) => { }; const CodeExampleInner: React.FC = (props) => { - const { - filePath, - title, - lineStart, - lineEnd, - language = 'python', - pathPrefix = 'docs_beta_snippets/docs_beta_snippets', - ...extraProps - } = props; - - const path = pathPrefix + '/' + filePath; + const {filePath, title, lineStart, lineEnd, language = 'python', ...extraProps} = props; + + const path = 'docs_beta_snippets/docs_beta_snippets/' + filePath; const cacheKey = JSON.stringify(props); const {content, error} = useLoadModule(cacheKey, path, lineStart, lineEnd);