Skip to content

Commit

Permalink
update CodeExample to reference new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Aug 16, 2024
1 parent 7235e58 commit 2efbc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs-next/src/components/CodeExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CodeExample: React.FC<CodeExampleProps> = ({filePath, language, title}) =>

React.useEffect(() => {
// Adjust the import path to start from the docs directory
import(`!!raw-loader!/docs/${filePath}`)
import(`!!raw-loader!/docs/code_examples/${filePath}`)
.then((module) => {
const lines = module.default.split('\n');
const mainIndex = lines.findIndex((line) => line.trim().startsWith('if __name__ == '));
Expand Down

0 comments on commit 2efbc13

Please sign in to comment.