Skip to content

Commit ff5782f

Browse files
author
zhouhongxuan
committed
feat(build): tip
1 parent 1c4fe72 commit ff5782f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> 有同学反馈说清单内容较多,一次无法读完,过了一段时间回来就记不清阅读进度了。为了便于大家分次阅读,我制作了一个页面,在每篇文章前加上选择框(选中checkbox表示已读)用于记录你已经读过的文章,便于下次回来时继续阅读。页面链接:[Frontend Tech List](https://alienzhou.github.io/frontend-tech-list/)
2+
13
# 前端技术清单
24

35
学习文章的知识往往是碎片化的。而前端涉及到的面很广,这些知识如果不进行有效梳理,则无法相互串联、形成体系。因此,我结合工作体会将抽象出了一些前端基础能力,并将看过、写过的一些不错的文章进行整理,形成了一份(纯)前端技术清单。

script/md2html.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ const path = require('path');
33
const fs = require('fs');
44

55
function convertMd2Html() {
6+
const tip = '\r\n> 可以勾选读完的文章,记录会存储在localStorage中,便于下次访问时还原之前的阅读进度。';
7+
const title = '# 前端技术清单';
68
let md = fs.readFileSync(path.resolve(__dirname, '../README.md'), 'utf-8');
9+
const pairs = md.split(title);
10+
md = title + tip + pairs[1];
11+
712
const splitPattern = '## 0. 年度报告';
813
const parts = md.split(splitPattern);
914
parts[1] = parts[1].replace(/- \[/g, '- [ ] [');

0 commit comments

Comments
 (0)