Files
swift-cli-doc/justfile
Michael Housh 6b670ce5c4
Some checks failed
CI / Run tests. (push) Failing after 31s
feat: Adds ci
2024-12-07 09:48:45 -05:00

39 lines
925 B
Makefile

docker_image_name := "clidoc"
[private]
default:
@just --list
clean:
@rm -rf .build
test-docker: build-docker
@docker run -t --rm {{docker_image_name}}:test swift test
build-docker:
@docker build \
--file docker/Dockerfile.test \
--tag {{docker_image_name}}:test \
.
preview-documentation target="CliDoc":
# using the --enable-experimental-combined-documentation doesn't work in previews currently.
@swift package \
--disable-sandbox \
--allow-writing-to-directory "docs/" \
preview-documentation \
--target {{target}} \
--include-extended-types \
--enable-inherited-docs \
build-documentation:
swift package \
--disable-sandbox \
--allow-writing-to-directory "docs/" \
generate-documentation \
--target CliDoc \
--target CliDocCore \
--output-path "docs/" \
--transform-for-static-hosting \
--enable-experimental-combined-documentation