**What this PR does / why we need it**:
Supports Ubuntu Snap based Docker installations by using TMPDIR instead
of an explicit tempfile.
Because Ubuntu Snap packages have access to only the user's home
directory, users must specify something like `TMPDIR="$(mktemp -d -q
~/.make-docs.XXXXX)"` in order to be able to run `make docs`.
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
echo'WARN: No make-docs script found in the working directory. Run `make update` to download it.' >&2
exit1
fi
.PHONY:docs
docs:## Serve documentation locally, which includes pulling the latest `DOCS_IMAGE` (default: `grafana/docs-base:latest`) container image. See also `docs-no-pull`.
@ -93,13 +95,16 @@ docs-debug: make-docs
.PHONY:doc-validator
doc-validator:## Run docs-validator on the entire docs folder.