docs: use make docs to re-generate the docs

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-08 18:57:45 -07:00
parent 940d9ccfee
commit 6d5142aa67
2 changed files with 8 additions and 8 deletions

View File

@ -38,7 +38,7 @@ jobs:
- name: Lint - name: Lint
run: | run: |
make shellcheck cuelint check-buildkit-version universelint make shellcheck cuelint check-buildkit-version docslint
- name: Markdown Lint - name: Markdown Lint
uses: nosborn/github-action-markdown-cli@v1.1.1 uses: nosborn/github-action-markdown-cli@v1.1.1

View File

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