Add targets for starting a local doc site

pull/5070/head
tstromberg 2019-08-13 16:54:08 -07:00
parent d384aa3150
commit 8e5a161710
1 changed files with 21 additions and 0 deletions

View File

@ -493,3 +493,24 @@ install-kvm-driver: out/docker-machine-driver-kvm2
release-kvm-driver: install-kvm-driver checksum
gsutil cp $(GOBIN)/docker-machine-driver-kvm2 gs://minikube/drivers/kvm/$(VERSION)/
gsutil cp $(GOBIN)/docker-machine-driver-kvm2.sha256 gs://minikube/drivers/kvm/$(VERSION)/
site/themes/docsy/assets/vendor/bootstrap/package.js:
git submodule update -f --init --recursive
# hugo for generating site previews
.ONESHELL:
out/hugo/hugo:
mkdir -p out
cd out
git clone https://github.com/gohugoio/hugo.git
cd hugo
go build --tags extended
# Serve the documentation site to localhost
.PHONY: site
site: site/themes/docsy/assets/vendor/bootstrap/package.js out/hugo/hugo
(cd site && ../out/hugo/hugo serve \
--disableFastRender \
--navigateToChanged \
--ignoreCache \
--buildFuture)