Skip to content

Commit

Permalink
fix: support partially staged commits, and remove doctoc title (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Jan 9, 2019
1 parent fe11bf3 commit 2442ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generators/app/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const packageJSON = (current, context) => {
'git add'
],
'README.md': [
'npm run docs:toc',
'doctoc --notitle',
'git add'
]
},
Expand Down Expand Up @@ -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']));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"git add"
],
"(README.md|docs/conventions.md)": [
"doctoc",
"doctoc --notitle",
"git add"
]
},
Expand Down

0 comments on commit 2442ee2

Please sign in to comment.