Skip to content

Commit bd49725

Browse files
Update make docs procedure (#3915)
Co-authored-by: grafanabot <[email protected]>
1 parent e449446 commit bd49725

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

docs/docs.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ update: ## Fetch the latest version of this Makefile and the `make-docs` script
124124
.PHONY: topic/%
125125
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`.
126126
topic/%:
127-
$(if $(TOPIC_PATH),,$(error "You must set the TOPIC_PATH variable to the path where the $(@) topic will be created.
128-
For example: make $(@) TOPIC_PATH=sources/my-new-topic.md"))
127+
$(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"))
129128
mkdir -p $(dir $(TOPIC_PATH))
130129
curl -s -o $(TOPIC_PATH) https://raw.githubusercontent.com/grafana/writers-toolkit/refs/heads/main/docs/static/templates/$(@F)-template.md

docs/make-docs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
# [Semantic versioning](https://semver.org/) is used to help the reader identify the significance of changes.
99
# Changes are relevant to this script and the support docs.mk GNU Make interface.
1010
#
11+
# ## 8.5.0 (2025-02-13)
12+
#
13+
# ### Added
14+
#
15+
# - make topic/<KIND> TOPIC_PATH=<PATH> target to create a new topic from the Writers' Toolkit templates.
16+
#
1117
# ## 8.4.0 (2025-01-27)
1218
#
1319
# ### Fixed

0 commit comments

Comments
 (0)