From 6d5142aa673c9d0b1e45cef1b9a6c56dd9d32394 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 8 Jun 2021 18:57:45 -0700 Subject: [PATCH] docs: use make docs to re-generate the docs Signed-off-by: Andrea Luzzardi --- .github/workflows/ci.yml | 2 +- Makefile | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f76d55fb..22dc496b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - name: Lint run: | - make shellcheck cuelint check-buildkit-version universelint + make shellcheck cuelint check-buildkit-version docslint - name: Markdown Lint uses: nosborn/github-action-markdown-cli@v1.1.1 diff --git a/Makefile b/Makefile index 80286974..1e2cc1ba 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ shellcheck: shellcheck ./tests/*.bats ./tests/*.bash .PHONY: lint -lint: shellcheck cuelint golint check-buildkit-version universelint +lint: shellcheck cuelint golint check-buildkit-version docslint .PHONY: check-buildkit-version check-buildkit-version: @@ -50,15 +50,15 @@ integration: dagger-debug install: dagger go install ./cmd/dagger -.PHONY: universe -universe: dagger +.PHONY: docs +docs: dagger ./cmd/dagger/dagger doc --output ./docs/reference/universe --format md -.PHONY: universelint -universelint: universe +.PHONY: docslint +docslint: docs @test -z "$$(git status -s . | grep -e "^ M" | grep docs/reference/universe | cut -d ' ' -f3 | tee /dev/stderr)" -.PHONY: docs -docs: +.PHONY: web +web: yarn --cwd "./website" install yarn --cwd "./website" start