docs: fix windows local deploy bug.

This commit is contained in:
EstrellaXD
2023-08-24 14:47:30 +08:00
parent e2a218b744
commit 56ed88a380
2 changed files with 1 additions and 5 deletions

View File

@@ -1,7 +1,4 @@
import { defineConfig } from "vitepress";
import { inject } from '@vercel/analytics';
inject();
const version = `v3.0`
@@ -16,7 +13,6 @@ export default defineConfig({
['meta', { property: 'og:image', content: '/social.png' }],
['meta', { property: 'og:site_name', content: 'AutoBangumi' }],
['meta', { property: 'og:url', content: 'https://www.autobangumi.org' }],
["script", { src: '/_vercel/insights/script.js' }],
["script", { src: 'https://www.googletagmanager.com/gtag/js?id=G-3Z8W6WMN7J' }],
["script", {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-3Z8W6WMN7J');"],
],

View File

@@ -11,7 +11,7 @@
2. 创建版本信息文件:
```powershell
echo "VERSION='local'" > backend\src\__version__.py
echo "VERSION='local'" > backend\src\module\__version__.py
```
3. 新建 `python` 虚拟环境、激活并安装依赖(需保证 `python -V` 打印的版本符合 `Dockerfile` 中的要求,如 `FROM python:3.11-alpine AS APP`