|
4 | 4 |
|
5 | 5 | PROJECT_DIR = $(shell pwd) |
6 | 6 | SCANNERS_DIR = $(PROJECT_DIR)/scanners |
| 7 | +HELM_DOCS_DIR = $(PROJECT_DIR)/.helm-docs |
7 | 8 |
|
8 | 9 | SCANNERS_CHART_LIST := $(sort $(wildcard $(SCANNERS_DIR)/*/Chart.yaml)) |
9 | 10 |
|
@@ -86,21 +87,21 @@ scanner-docs: |
86 | 87 | echo "Docs Folder found at: $${dir}/docs"; \ |
87 | 88 | if [ -d "parser" ]; then \ |
88 | 89 | echo "Parser found at: $${dir}/parser"; \ |
89 | | - helm-docs --template-files=./../../.helm-docs/templates.gotmpl \ |
| 90 | + helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \ |
90 | 91 | --template-files=.helm-docs.gotmpl \ |
91 | | - --template-files=./../../.helm-docs/README.DockerHub-Parser.md.gotmpl \ |
| 92 | + --template-files=$(HELM_DOCS_DIR)/README.DockerHub-Parser.md.gotmpl \ |
92 | 93 | --output-file=docs/README.DockerHub-Parser.md; \ |
93 | 94 | fi; \ |
94 | 95 | if [ -d "scanner" ]; then \ |
95 | 96 | echo "Scanner found at: $${dir}/parser"; \ |
96 | | - helm-docs --template-files=./../../.helm-docs/templates.gotmpl \ |
| 97 | + helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \ |
97 | 98 | --template-files=.helm-docs.gotmpl \ |
98 | | - --template-files=./../../.helm-docs/README.DockerHub-Scanner.md.gotmpl \ |
| 99 | + --template-files=$(HELM_DOCS_DIR)/README.DockerHub-Scanner.md.gotmpl \ |
99 | 100 | --output-file=docs/README.DockerHub-Scanner.md; \ |
100 | 101 | fi; \ |
101 | | - helm-docs --template-files=./../../.helm-docs/templates.gotmpl \ |
| 102 | + helm-docs --template-files=$(HELM_DOCS_DIR)/templates.gotmpl \ |
102 | 103 | --template-files=.helm-docs.gotmpl \ |
103 | | - --template-files=./../../.helm-docs/README.ArtifactHub.md.gotmpl \ |
| 104 | + --template-files=$(HELM_DOCS_DIR)/README.ArtifactHub.md.gotmpl \ |
104 | 105 | --output-file=docs/README.ArtifactHub.md; \ |
105 | 106 | else \ |
106 | 107 | echo "Ignoring Docs creation process for Chart $$dir, because no `docs` folder found at: $${dir}/docs"; \ |
|
0 commit comments