mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
add a pre-commit hook for helm docs
This commit is contained in:
parent
fd2bde68f3
commit
7c8f74e33d
15
.pre-commit-config.yaml
Normal file
15
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
repos:
|
||||
- repo: https://github.com/norwoodj/helm-docs
|
||||
rev: v1.2.0
|
||||
hooks:
|
||||
- id: helm-docs
|
||||
args:
|
||||
# Make the tool search for charts only under the `example-charts` directory
|
||||
- --chart-search-root=example-charts
|
||||
|
||||
# The `./` makes it relative to the chart-search-root set above
|
||||
- --template-files=./_templates.gotmpl
|
||||
|
||||
# Repeating the flag adds this to the list, now [./_templates.gotmpl, README.md.gotmpl]
|
||||
# A base filename makes it relative to each chart directory found
|
||||
- --template-files=README.md.gotmpl
|
Loading…
Reference in New Issue
Block a user