From c338579e36f9d7088259b02f1c144bd2ef802504 Mon Sep 17 00:00:00 2001 From: guide Date: Wed, 16 Nov 2022 07:46:27 +0800 Subject: [PATCH] =?UTF-8?q?[docs=20update]=E7=99=BE=E5=BA=A6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 46 ++++++++++++++++++++++++++++++++++- docs/.vuepress/themeConfig.ts | 3 --- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 8f9c0c0a..5c9676a4 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -6,10 +6,54 @@ export default defineUserConfig({ dest: "./dist", theme: themeConfig, shouldPrefetch: false, + description: + "「Java学习指北+Java面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,复习 Java 知识点,首选 JavaGuide! ", + head: [ + // meta + ["meta", { name: "robots", content: "all" }], + ["meta", { name: "author", content: "Guide" }], + [ + "meta", + { + "http-equiv": "Cache-Control", + content: "no-cache, no-store, must-revalidate", + }, + ], + ["meta", { "http-equiv": "Pragma", content: "no-cache" }], + ["meta", { "http-equiv": "Expires", content: "0" }], + [ + "meta", + { + name: "keywords", + content: + "Java基础, 多线程, JVM, 虚拟机, 数据库, MySQL, Spring, Redis, MyBatis, 系统设计, 分布式, RPC, 高可用, 高并发", + }, + ], + ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }], + // 添加百度统计 + [ + "script", + {}, + `var _hmt = _hmt || []; + (function() { + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?5dd2e8c97962d57b7b8fea1737c01743"; + var s = document.getElementsByTagName("script")[0]; + s.parentNode.insertBefore(hm, s); + })();`, + ], + [ + "link", + { + rel: "stylesheet", + href: "/iconfont/iconfont.css", + }, + ], + ], locales: { "/": { lang: "zh-CN", - } + }, }, plugins: [ searchPlugin({ diff --git a/docs/.vuepress/themeConfig.ts b/docs/.vuepress/themeConfig.ts index 41dbe758..c9144365 100644 --- a/docs/.vuepress/themeConfig.ts +++ b/docs/.vuepress/themeConfig.ts @@ -1,6 +1,4 @@ import { hopeTheme } from "vuepress-theme-hope"; -import { searchPlugin } from "@vuepress/plugin-search"; - import { navbarConfig } from "./navbar"; import { sidebarConfig } from "./sidebar"; @@ -25,7 +23,6 @@ export const themeConfig = hopeTheme({ "Word", "ReadingTime", ], - blog: { intro: "/about-the-author/", sidebarDisplay: "mobile",