From 56b030492fa733c36ea6c2ed4d13bd088740307a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Mar 2025 10:38:11 +0000 Subject: [PATCH] Update `make docs` procedure (#101497) Co-authored-by: grafanabot Co-authored-by: Jack Baldry --- docs/docs.mk | 2 +- docs/make-docs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs.mk b/docs/docs.mk index dfb6e9e501c..09308dc8604 100644 --- a/docs/docs.mk +++ b/docs/docs.mk @@ -125,7 +125,7 @@ update: ## Fetch the latest version of this Makefile and the `make-docs` script TOPIC_TYPES := concept multiple-tasks reference section task tutorial visualization .PHONY: $(patsubst %,topic/%,$(TOPIC_TYPES)) topic/%: ## Create a topic from the Writers' Toolkit template. Specify the topic type as the target, for example, `make topic/task TOPIC_PATH=sources/my-new-topic.md`. -topic/%: +$(patsubst %,topic/%,$(TOPIC_TYPES)): $(if $(TOPIC_PATH),,$(error "You must set the TOPIC_PATH variable to the path where the $(@F) topic will be created. For example: make $(@) TOPIC_PATH=sources/my-new-topic.md")) mkdir -p $(dir $(TOPIC_PATH)) curl -s -o $(TOPIC_PATH) https://raw.githubusercontent.com/grafana/writers-toolkit/refs/heads/main/docs/static/templates/$(@F)-template.md diff --git a/docs/make-docs b/docs/make-docs index 80c89aea7ce..f6d72f905dc 100755 --- a/docs/make-docs +++ b/docs/make-docs @@ -8,6 +8,12 @@ # [Semantic versioning](https://semver.org/) is used to help the reader identify the significance of changes. # Changes are relevant to this script and the support docs.mk GNU Make interface. # +# ## 8.5.2 (2025-02-28) +# +# ### Fixed +# +# - topic/ targets are no longer no-ops as a result of 8.5.1. +# # ## 8.5.1 (2025-02-18) # # ### Fixed