docs: use make docs to re-generate the docs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
940d9ccfee
commit
6d5142aa67
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
14
Makefile
14
Makefile
@ -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
|
||||||
|
Reference in New Issue
Block a user