mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
0bb33839f5
* added instructions so we generate docs prior to building them. * replaced ci script. * improved according to feedback.
24 lines
859 B
Makefile
24 lines
859 B
Makefile
.PHONY: docs docs-test docs-no-pull docs-generate-frontend docs-no-generate-frontend
|
|
|
|
IMAGE = grafana/docs-base:latest
|
|
|
|
docs-generate-frontend:
|
|
yarn install --pure-lockfile
|
|
yarn run packages:build
|
|
yarn run packages:docsExtract
|
|
yarn run packages:docsToMarkdown
|
|
yarn run packages:clean
|
|
|
|
docs-no-generate-frontend:
|
|
docker run -v $(shell pwd)/sources:/hugo/content/docs/grafana/latest -p 3002:3002 --rm -it $(IMAGE) /bin/bash -c 'make server'
|
|
|
|
docs: docs-generate-frontend
|
|
docker pull $(IMAGE)
|
|
docker run -v $(shell pwd)/sources:/hugo/content/docs/grafana/latest -p 3002:3002 --rm -it $(IMAGE) /bin/bash -c 'make server'
|
|
|
|
docs-no-pull: docs-generate-frontend docs-no-generate-frontend
|
|
|
|
docs-test: docs-generate-frontend
|
|
docker pull $(IMAGE)
|
|
docker run -v $(shell pwd)/sources:/hugo/content/docs/grafana/latest --rm -it $(IMAGE) /bin/bash -c 'make prod'
|