Skip to content

Commit 8f62ff8

Browse files
grafanabotsimonswine
authored andcommitted
Update make docs procedure
1 parent a9c4dac commit 8f62ff8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/docs.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ update: ## Fetch the latest version of this Makefile and the `make-docs` script
121121
curl -s -LO https://raw.githubusercontent.com/grafana/writers-toolkit/main/docs/make-docs
122122
chmod +x make-docs
123123

124-
.PHONY: topic/%
124+
# ls static/templates/ | sed 's/-template\.md//' | xargs
125+
TOPIC_TYPES := concept multiple-tasks reference section task tutorial visualization
126+
.PHONY: $(patsubst %,topic/%,$(TOPIC_TYPES))
125127
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`.
126128
topic/%:
127129
$(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"))

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.1 (2025-02-18)
12+
#
13+
# ### Fixed
14+
#
15+
# - PHONY declaration for topic/<KIND> targets.
16+
#
1117
# ## 8.5.0 (2025-02-13)
1218
#
1319
# ### Added

0 commit comments

Comments
 (0)