docs: add make universe

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-08 17:35:18 -07:00
parent b53e2136b7
commit e1f28a73e5
3 changed files with 16 additions and 1 deletions

View File

@ -30,7 +30,7 @@ shellcheck:
shellcheck ./tests/*.bats ./tests/*.bash
.PHONY: lint
lint: shellcheck cuelint golint check-buildkit-version
lint: shellcheck cuelint golint check-buildkit-version universelint
.PHONY: check-buildkit-version
check-buildkit-version:
@ -50,6 +50,14 @@ integration: dagger-debug
install: dagger
go install ./cmd/dagger
.PHONY: universe
universe: dagger
./cmd/dagger/dagger doc --output ./docs/reference/universe --format md
.PHONY: universelint
universelint: universe
@test -z "$$(git status -s . | grep -e "^ M" | grep docs/reference/universe | cut -d ' ' -f3 | tee /dev/stderr)"
.PHONY: docs
docs:
yarn --cwd "./website" install

View File

@ -0,0 +1,4 @@
{
"label": "Reference",
"position": 5
}

View File

@ -0,0 +1,3 @@
{
"label": "Universe"
}