feat: add sketch cheatsheet.

This commit is contained in:
jaywcjlove
2022-09-28 02:12:32 +08:00
parent 43c0fb0ec6
commit 29b891613d
5 changed files with 145 additions and 3 deletions

View File

@ -24,6 +24,7 @@ async function createHTML(files = [], num = 0) {
await fs.ensureDir(path.dirname(outputHTMLPath));
const html = create(mdstr.toString(), {
filename: path.basename(outputHTMLPath, '.html'),
isHome: /README.md$/.test(path.relative(process.cwd(), dataFile.path)),
githubURL,
homePath: path.relative(path.dirname(outputHTMLPath), path.resolve(OUTOUT, 'index.html')),