Update make docs procedure (#5388)

To test the changes, run the following and browse to URL output by the
script:

```console
git fetch
git checkout origin/update-make-docs
cd docs
make docs
```

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
This commit is contained in:
github-actions[bot] 2024-12-30 10:18:01 +00:00 committed by GitHub
parent cea98dc17a
commit 678833bb29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,14 @@
# [Semantic versioning](https://semver.org/) is used to help the reader identify the significance of changes. # [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. # Changes are relevant to this script and the support docs.mk GNU Make interface.
# #
# ## 8.3.0 (2024-12-27)
#
# ### Added
#
# - Debug output of the final command when DEBUG=true.
#
# Useful to inspect if the script is correctly constructing the final command.
#
# ## 8.2.0 (2024-12-22) # ## 8.2.0 (2024-12-22)
# #
# ### Removed # ### Removed
@ -801,6 +809,10 @@ case "${image}" in
| sed "s#$(proj_dst "${proj}")#sources#" | sed "s#$(proj_dst "${proj}")#sources#"
EOF EOF
if [ -n "${DEBUG}" ]; then
debg "${cmd}"
fi
case "${OUTPUT_FORMAT}" in case "${OUTPUT_FORMAT}" in
human) human)
if ! command -v jq >/dev/null 2>&1; then if ! command -v jq >/dev/null 2>&1; then
@ -837,6 +849,10 @@ EOF
/hugo/content/docs /hugo/content/docs
EOF EOF
if [ -n "${DEBUG}" ]; then
debg "${cmd}"
fi
case "${OUTPUT_FORMAT}" in case "${OUTPUT_FORMAT}" in
human) human)
${cmd} --output=line \ ${cmd} --output=line \