Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 3, 2023
1 parent c5a09e2 commit 598b8cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 598b8cc

Please sign in to comment.