diff --git a/README.md b/README.md index 4df36590..8c9b7567 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/modules/readme/Makefile b/modules/readme/Makefile index 327f2fe5..b1ad2b00 100644 --- a/modules/readme/Makefile +++ b/modules/readme/Makefile @@ -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)) @@ -78,7 +80,7 @@ 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: