From 996fbbf0c3a7e2d679bfe41b97d7331f592d2fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 24 Jun 2024 10:10:49 +0800 Subject: [PATCH] docs: Switch to venv --- .gitignore | 2 ++ Makefile | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 55bdab3a..60eb851e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ /*.xcframework/ .DS_Store /config.d/ +/venv/ + diff --git a/Makefile b/Makefile index b8352942..f6815470 100644 --- a/Makefile +++ b/Makefile @@ -197,13 +197,15 @@ lib_install: go install -v github.com/sagernet/gomobile/cmd/gobind@v0.1.3 docs: - mkdocs serve + venv/bin/mkdocs serve 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: - 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: rm -rf bin dist sing-box rm -f $(shell go env GOPATH)/sing-box