mirror of
https://github.com/apple/container.git
synced 2026-09-08 08:45:43 +00:00
Regenerate documentation on make docs (#160)
This PR allows using `make docs` without manually removing the existing `_site` folder.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user