diff --git a/scripts/build-docs.js b/scripts/build-docs.js index c5f9a3a0..06868200 100644 --- a/scripts/build-docs.js +++ b/scripts/build-docs.js @@ -44,11 +44,13 @@ const buildDocs = () => { const html = marked.parse(md, markedOptions); - const content = Util.replace(markdownTemplate, { + let content = Util.replace(markdownTemplate, { placeholder_title: 'Monocart Coverage Reports', placeholder_content: html }); + content = content.split('href="https://cenfun.github.io/monocart-coverage-reports/').join('href="./'); + fs.writeFileSync(path.resolve(__dirname, '../docs/index.html'), content); console.log('generated docs/index.html');