docs: Switch to venv

This commit is contained in:
世界 2024-06-24 10:10:49 +08:00
parent 142ff1b455
commit 996fbbf0c3
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View file

@ -14,3 +14,5 @@
/*.xcframework/ /*.xcframework/
.DS_Store .DS_Store
/config.d/ /config.d/
/venv/

View file

@ -197,13 +197,15 @@ lib_install:
go install -v github.com/sagernet/gomobile/cmd/gobind@v0.1.3 go install -v github.com/sagernet/gomobile/cmd/gobind@v0.1.3
docs: docs:
mkdocs serve venv/bin/mkdocs serve
publish_docs: publish_docs:
mkdocs gh-deploy -m "Update" --force --ignore-version --no-history venv/bin/mkdocs gh-deploy -m "Update" --force --ignore-version --no-history
docs_install: docs_install:
pip install --force-reinstall mkdocs-material=="9.*" mkdocs-static-i18n=="1.2.*" python -m venv venv
source ./venv/bin/activate && pip install --force-reinstall mkdocs-material=="9.*" mkdocs-static-i18n=="1.2.*"
clean: clean:
rm -rf bin dist sing-box rm -rf bin dist sing-box
rm -f $(shell go env GOPATH)/sing-box rm -f $(shell go env GOPATH)/sing-box