Skip to content

Commit

Permalink
Specify gomplate path in readme/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-niland committed Jan 31, 2024
1 parent 56cac58 commit 15ea31c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ We deliver 10x the value for a fraction of the cost of a full-time engineer. Our
[![README Commercial Support][readme_commercial_support_img]][readme_commercial_support_link]
## License

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0)

See [LICENSE](LICENSE) for full details.

Expand Down
6 changes: 4 additions & 2 deletions modules/readme/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export README_YAML ?= README.yaml
export README_TEMPLATE_REPO_REMOTE_NAME ?= origin
export README_TEMPLATE_REPO_REMOTE ?= $(shell [ -d .git ] && git remote get-url $(README_TEMPLATE_REPO_REMOTE_NAME))

export GOMPLATE_PATH ?= $(BUILD_HARNESS_PATH)/vendor/gomplate

# Parse https://github.com/...
ifneq (,$(findstring https://github.com/,$(README_TEMPLATE_REPO_REMOTE)))
URL_NO_PROTOCOL := $(subst https://github.com/,,$(README_TEMPLATE_REPO_REMOTE))
Expand Down Expand Up @@ -78,8 +80,8 @@ readme/lint:

## Create README.md by building it from README.yaml
readme/build: readme/deps $(README_TEMPLATE_FILE) $(README_DEPS)
@gomplate --file $(README_TEMPLATE_FILE) --out $(README_FILE) --config $(BUILD_HARNESS_PATH)/configs/gomplate.yaml
@$(GOMPLATE_PATH) --file $(README_TEMPLATE_FILE) --out $(README_FILE) --config $(BUILD_HARNESS_PATH)/configs/gomplate.yaml
@echo "Generated $(README_FILE) from $(README_TEMPLATE_FILE) using data from $(README_TEMPLATE_YAML)"

readme/generate-related-references:
@$(BUILD_HARNESS_PATH)/bin/generate_related_references.py
@$(BUILD_HARNESS_PATH)/bin/generate_related_references.py

0 comments on commit 15ea31c

Please sign in to comment.