docs: add netlify configuration (#10073)
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
This commit is contained in:
parent
4eeee031c7
commit
f1e3f2fa3c
2 changed files with 15 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -262,3 +262,8 @@ release: ensure-buildx clean
|
|||
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
|
||||
--build-arg BUILD_ID="$(BUILD_ID)" \
|
||||
-t $(REGISTRY)/controller-chroot:$(TAG) rootfs -f rootfs/Dockerfile-chroot
|
||||
|
||||
.PHONY: build-docs
|
||||
build-docs:
|
||||
pip install -U mkdocs-material==6.2.4 mkdocs-awesome-pages-plugin mkdocs-minify-plugin mkdocs-redirects
|
||||
mkdocs build --config-file mkdocs.yml
|
||||
|
|
10
netlify.toml
Normal file
10
netlify.toml
Normal file
|
@ -0,0 +1,10 @@
|
|||
# netlify configuration
|
||||
[build]
|
||||
publish = "site"
|
||||
command = "make build-docs"
|
||||
# available here https://github.com/netlify/build-image/blob/focal/included_software.md#languages
|
||||
environment = { PYTHON_VERSION = "3.8" }
|
||||
|
||||
[context.deploy-preview]
|
||||
publish = "site/"
|
||||
command = "make build-docs"
|
Loading…
Reference in a new issue