From f9636f297eff1bf050db76e32d4aee9b45c071eb Mon Sep 17 00:00:00 2001 From: Sahid Velji Date: Wed, 14 May 2025 21:08:28 -0400 Subject: [PATCH] chore: add Makefile `docs` target The docs target allows contributors to view the pkgsite docs locally. Signed-off-by: Sahid Velji --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99b31646..e5a57f7e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: mockgen test lint e2e-test +.PHONY: mockgen test lint e2e-test docs mockgen: mockgen -source=openfeature/provider.go -destination=openfeature/provider_mock_test.go -package=openfeature mockgen -source=openfeature/hooks.go -destination=openfeature/hooks_mock_test.go -package=openfeature @@ -6,7 +6,9 @@ mockgen: test: go test --short -cover ./... e2e-test: - git submodule update --init --recursive && go test -race -cover ./e2e/... + git submodule update --init --recursive && go test -race -cover ./e2e/... lint: go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1 ${GOPATH}/bin/golangci-lint run --deadline=3m --timeout=3m ./... # Run linters +docs: + go run golang.org/x/pkgsite/cmd/pkgsite@latest -open .