From ebcaf74f4273fc99efd335e1e8296ba650710bd9 Mon Sep 17 00:00:00 2001 From: Dmitry Kovba Date: Tue, 24 Jun 2025 13:09:20 -0700 Subject: [PATCH] Regenerate documentation on `make docs` (#160) This PR allows using `make docs` without manually removing the existing `_site` folder. --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 940685f9..3a75d751 100644 --- a/Makefile +++ b/Makefile @@ -106,7 +106,7 @@ ifeq (,$(wildcard bin/vmlinux)) endif .PHONY: fmt -fmt: swift-fmt update-licenses +fmt: swift-fmt update-licenses .PHONY: swift-fmt SWIFT_SRC = $(shell find . -type f -name '*.swift' -not -path "*/.*" -not -path "*.pb.swift" -not -path "*.grpc.swift" -not -path "*/checkouts/*") @@ -135,12 +135,10 @@ serve-docs: @python3 -m http.server --bind 127.0.0.1 --directory ./_serve .PHONY: docs -docs: _site - -_site: +docs: @echo Updating API documentation... - rm -rf $@ - @scripts/make-docs.sh $@ containerization + @rm -rf _site + @scripts/make-docs.sh _site containerization .PHONY: cleancontent cleancontent: