From 0864b06e0c1e78c417571320013de0dd13a467e9 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 13 Oct 2017 16:04:49 +0800 Subject: [PATCH] Integrate npm package "doctoc" to update README.md --- README.md | 4 ++++ package.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27aaf62..bff6ef7 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ Still in the early stage, feel free to fork or contribute to HackMD. Thanks for using! :smile: + + # Table of Contents - [Browsers Requirement](#browsers-requirement) @@ -35,6 +37,8 @@ Thanks for using! :smile: - [Operational Transformation](#operational-transformation) - [License](#license) + + # Browsers Requirement - Chrome >= 47, Chrome for Android >= 47 diff --git a/package.json b/package.json index b0f1ae1..e627312 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "dev": "webpack --config webpack.config.js --progress --colors --watch", "build": "webpack --config webpack.production.js --progress --colors --bail", "postinstall": "bin/heroku", - "start": "node app.js" + "start": "node app.js", + "doctoc": "doctoc --title='# Table of Contents' README.md" }, "dependencies": { "Idle.Js": "git+https://github.com/shawnmclean/Idle.js", @@ -151,6 +152,7 @@ "babel-runtime": "^6.20.0", "copy-webpack-plugin": "^4.0.1", "css-loader": "^0.26.1", + "doctoc": "^1.3.0", "ejs-loader": "^0.3.0", "exports-loader": "^0.6.3", "expose-loader": "^0.7.1",