Skip to content

Commit

Permalink
Pass in doc directories as args
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gilmer committed Nov 7, 2019
1 parent e5a735a commit 80f04bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
description: Generate a Docs Index
entry: npx adr
language: node
args: ["docs/adr"]
types: ["file", "markdown"]
pass_filenames: false

Expand Down
2 changes: 1 addition & 1 deletion pre-commit-gen-docs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function update_index {
popd > /dev/null || return
}

for dir in docs/adr docs/rfc docs/runbook; do
for dir in "$@"; do
if [[ -d "${dir}" ]]; then
update_index "${dir}"
fi
Expand Down

0 comments on commit 80f04bf

Please sign in to comment.