DOCS-1: Init document work

This commit is contained in:
Blake Ridgway
2026-07-28 07:20:32 -05:00
parent 8f02a3fc8e
commit 0cbcc962f7
66 changed files with 12224 additions and 71 deletions

34
Makefile Normal file
View File

@@ -0,0 +1,34 @@
BINARY := docs-server
GOFLAGS := -trimpath -ldflags="-s -w"
.PHONY: build run linux-amd64 linux-arm64 all test clean
build:
CGO_ENABLED=0 go build $(GOFLAGS) -o $(BINARY) ./cmd/serve
run:
go run ./cmd/serve
linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -o $(BINARY)-linux-amd64 ./cmd/serve
linux-arm64:
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build $(GOFLAGS) -o $(BINARY)-linux-arm64 ./cmd/serve
all: linux-amd64 linux-arm64
test:
go test ./...
clean:
rm -f $(BINARY) $(BINARY)-linux-*
# Static site build
.PHONY: build-static
build-static:
go run ./cmd/build
build-static-watch:
go run ./cmd/build --watch