浏览代码

docs: Switch to venv

世界 1 年之前
父节点
当前提交
996fbbf0c3
共有 2 个文件被更改,包括 7 次插入3 次删除
  1. 2 0
      .gitignore
  2. 5 3
      Makefile

+ 2 - 0
.gitignore

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

+ 5 - 3
Makefile

@@ -197,13 +197,15 @@ lib_install:
 	go install -v github.com/sagernet/gomobile/cmd/[email protected]
 
 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