Skip to content

Commit 1eb3b65

Browse files
kostis-codefreshmcfearsome
authored andcommitted
build: preview docs locally (argoproj-labs#470)
Signed-off-by: Kostis Kapelonis <[email protected]> Signed-off-by: Kostis Kapelonis <[email protected]>
1 parent 9115ea1 commit 1eb3b65

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ override LDFLAGS += \
3434
-X ${VERSION_PACKAGE}.gitCommit=${GIT_COMMIT} \
3535
-X ${VERSION_PACKAGE}.buildDate=${BUILD_DATE}
3636

37+
38+
MKDOCS_DOCKER_IMAGE?=squidfunk/mkdocs-material:4.1.1
39+
MKDOCS_RUN_ARGS?=
40+
41+
3742
.PHONY: all
3843
all: prereq controller
3944

@@ -137,3 +142,8 @@ run-test:
137142
--kubeconfig /kube/config \
138143
--argocd-server-addr $(ARGOCD_SERVER) \
139144
--grpc-web
145+
146+
147+
.PHONY: serve-docs
148+
serve-docs:
149+
docker run ${MKDOCS_RUN_ARGS} --rm -it -p 8000:8000 -v ${CURRENT_DIR}:/docs ${MKDOCS_DOCKER_IMAGE} serve -a 0.0.0.0:8000

docs/contributing/development.md

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ important targets are:
2727
* `manifests` - this will build the installation manifests for Kubernetes from
2828
the Kustomize sources
2929

30+
* `serve-docs` will render the documentation at localhost:8000 (requires Docker)
31+
3032
### Windows Developer Tips
3133

3234
If you are running the cmd shell and are running into issues running `make all`, consider using Git bash.

0 commit comments

Comments
 (0)