From b964874fdb7a47dd92d7a723a1ae914ac36e15a2 Mon Sep 17 00:00:00 2001 From: xuqm Date: Thu, 9 Jul 2026 15:46:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PYTHONUTF8=3D1=20=E5=BC=BA=E5=88=B6=20UT?= =?UTF-8?q?F-8=20=E6=96=87=E4=BB=B6=E7=B3=BB=E7=BB=9F=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd501dd..a766234 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,9 +17,10 @@ pipeline { stage('Build Docs') { steps { bat ''' - chcp 65001 > nul + set PYTHONUTF8=1 + set PYTHONIOENCODING=utf-8 pip3 install mkdocs-material --quiet - python -c "import sys; sys.stdout.reconfigure(encoding='utf-8'); import subprocess; subprocess.run([sys.executable, '-X', 'utf8', '-m', 'mkdocs', 'build', '--clean', '--site-dir', 'site'])" + python -m mkdocs build --clean --site-dir site ''' } }