Skip to content

Commit 0864b06

Browse files
Integrate npm package "doctoc" to update README.md
1 parent 6fadd91 commit 0864b06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Still in the early stage, feel free to fork or contribute to HackMD.
1414

1515
Thanks for using! :smile:
1616

17+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
18+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1719
# Table of Contents
1820

1921
- [Browsers Requirement](#browsers-requirement)
@@ -35,6 +37,8 @@ Thanks for using! :smile:
3537
- [Operational Transformation](#operational-transformation)
3638
- [License](#license)
3739

40+
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
41+
3842
# Browsers Requirement
3943

4044
- Chrome >= 47, Chrome for Android >= 47

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"dev": "webpack --config webpack.config.js --progress --colors --watch",
1111
"build": "webpack --config webpack.production.js --progress --colors --bail",
1212
"postinstall": "bin/heroku",
13-
"start": "node app.js"
13+
"start": "node app.js",
14+
"doctoc": "doctoc --title='# Table of Contents' README.md"
1415
},
1516
"dependencies": {
1617
"Idle.Js": "git+https://github.com/shawnmclean/Idle.js",
@@ -151,6 +152,7 @@
151152
"babel-runtime": "^6.20.0",
152153
"copy-webpack-plugin": "^4.0.1",
153154
"css-loader": "^0.26.1",
155+
"doctoc": "^1.3.0",
154156
"ejs-loader": "^0.3.0",
155157
"exports-loader": "^0.6.3",
156158
"expose-loader": "^0.7.1",

0 commit comments

Comments
 (0)