From 56ed88a38096c7678964a456c473b8bbaf103f6b Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Thu, 24 Aug 2023 14:47:30 +0800 Subject: [PATCH] docs: fix windows local deploy bug. --- docs/.vitepress/config.ts | 4 ---- docs/deploy/windows.md | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 596351a1..0029f92f 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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');"], ], diff --git a/docs/deploy/windows.md b/docs/deploy/windows.md index 3d77a288..632c1abb 100644 --- a/docs/deploy/windows.md +++ b/docs/deploy/windows.md @@ -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`)