3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 13:03:21 +00:00

add a pre-commit hook for helm docs

This commit is contained in:
jessebot 2023-07-14 14:20:20 +02:00
parent fd2bde68f3
commit 7c8f74e33d

15
.pre-commit-config.yaml Normal file
View 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