File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ cd build/html
66
77REM 使用 Python 执行 add-analytics.py 脚本
88@ REM for /r %%f in (*.html) do (
9- python ..\..\add-analytics-window .py " %% f"
9+ python ..\..\add-analytics.py " %% f"
1010@ REM )
1111
1212REM 替换 _static 为 static,_images 为 images
1313for /r %%f in (*.html) do (
14- powershell -Command " (Get-Content '%%f ') -replace '_static', 'static' | Set-Content '%%f '"
15- powershell -Command " (Get-Content '%%f ') -replace '_images', 'images' | Set-Content '%%f '"
14+ echo Processing: %%f
15+ powershell -Command " (Get-Content '%%f ' -Encoding UTF8) -replace '_static', 'static' | Set-Content '%%f ' -Encoding UTF8"
16+ powershell -Command " (Get-Content '%%f ' -Encoding UTF8) -replace '_images', 'images' | Set-Content '%%f ' -Encoding UTF8"
1617)
1718
1819REM 删除临时文件
You can’t perform that action at this time.
0 commit comments