diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index b341734ac6218d..34512b71412840 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -31,7 +31,7 @@ function getExample(componentName) { return; } return { - path: path, + path: path.replace(/^\.\.\//, ''), content: fs.readFileSync(path).toString(), }; }