diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 4d9822b6..e2ed1682 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -5,8 +5,17 @@ import generateSidebar from '../../scripts/sidebar.js'; export default defineConfig({ lang: 'zh-CN', title: "我的世界中国版 ModSDK", - description: "我的世界中国版 ModSDK Wiki 镜像", + description: "ModSDK 开发者文档 镜像,但提供更优质的搜索", ignoreDeadLinks: true, + head: [ + ['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-HPBDPVLP03' }], + ['script', {}, ` + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'G-HPBDPVLP03'); + `] + ], themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ diff --git a/docs/index.md b/docs/index.md index 33c7dc1b..08677f19 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,7 +5,7 @@ layout: home hero: name: "我的世界中国版 ModSDK" text: "" - tagline: "我的世界中国版 ModSDK 镜像" + tagline: "ModSDK 开发者文档 镜像,但提供更优质的搜索 🤩" actions: - theme: brand text: 开始 @@ -14,15 +14,15 @@ hero: features: - icon: 🛠️ title: API文档 - details: 查询完整的 ModSDK API 文档 + details: API是构建缤纷方块世界的基石,快来查查哪一个是你需要的。 link: /mcdocs/0-概述/0-概述 - icon: 📙 title: 开发指南 - details: 一个个实际功能出发的教程 + details: 在开发指南中浏览每一个开发工具的使用说明,让它们更加得心应手。 link: /mcguide/readme - icon: 📝 title: 教学课程 - details: 实战攻略! + details: 不断更新的系列课程,系统性地帮助您搭建开发知识体系。 link: /mconline/readme ---