From 3267af19733eec683fca99e235b308c83e4c0741 Mon Sep 17 00:00:00 2001 From: brandonocasey Date: Wed, 31 Oct 2018 15:13:28 -0400 Subject: [PATCH] fix: support partially staged commits, and remove doctoc title --- generators/app/package-json.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generators/app/package-json.js b/generators/app/package-json.js index 199dc3a0..bc7a77c0 100644 --- a/generators/app/package-json.js +++ b/generators/app/package-json.js @@ -193,7 +193,7 @@ const packageJSON = (current, context) => { 'git add' ], 'README.md': [ - 'npm run docs:toc', + 'doctoc --notitle', 'git add' ] }, @@ -231,7 +231,7 @@ const packageJSON = (current, context) => { _.assign(result.scripts, { 'docs': 'npm-run-all docs:*', 'docs:api': 'jsdoc src -g plugins/markdown -r -d docs/api', - 'docs:toc': 'doctoc README.md' + 'docs:toc': 'doctoc --notitle README.md' }); _.assign(result.devDependencies, getGeneratorVersions(['doctoc', 'jsdoc'])); diff --git a/package.json b/package.json index 5d110f2d..1715bc81 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "git add" ], "(README.md|docs/conventions.md)": [ - "doctoc", + "doctoc --notitle", "git add" ] },