mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
chore: remove unused features
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import { defineUserConfig } from "vuepress";
|
|
||||||
import { viteBundler } from "@vuepress/bundler-vite";
|
import { viteBundler } from "@vuepress/bundler-vite";
|
||||||
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
|
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
|
||||||
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
|
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
|
||||||
|
import { defineUserConfig } from "vuepress";
|
||||||
import { redirectPlugin } from "vuepress-plugin-redirect";
|
import { redirectPlugin } from "vuepress-plugin-redirect";
|
||||||
|
|
||||||
import theme from "./theme.js";
|
import theme from "./theme.js";
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
@@ -28,6 +29,7 @@ export default defineUserConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
locales: {
|
locales: {
|
||||||
"/zh/": {
|
"/zh/": {
|
||||||
lang: "zh-CN",
|
lang: "zh-CN",
|
||||||
|
|||||||
@@ -60,90 +60,46 @@ export default hopeTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
plugins: {
|
plugins: {
|
||||||
// If you don't need comment feature, you can remove following option
|
|
||||||
// The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
|
|
||||||
// To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
|
|
||||||
comment: {
|
comment: {
|
||||||
provider: "Waline",
|
provider: "Waline",
|
||||||
serverURL: "https://comments.snapgenshin.com",
|
serverURL: "https://comments.snapgenshin.com",
|
||||||
emoji: [
|
emoji: [
|
||||||
'//unpkg.com/@waline/emojis@1.1.0/weibo',
|
"//unpkg.com/@waline/emojis@1.1.0/weibo",
|
||||||
'//unpkg.com/@waline/emojis@1.1.0/bilibili',
|
"//unpkg.com/@waline/emojis@1.1.0/bilibili",
|
||||||
'//unpkg.com/@waline/emojis@1.1.0/bmoji',
|
"//unpkg.com/@waline/emojis@1.1.0/bmoji",
|
||||||
'//unpkg.com/@waline/emojis@1.1.0/qq',
|
"//unpkg.com/@waline/emojis@1.1.0/qq",
|
||||||
'//unpkg.com/@waline/emojis@1.1.0/tieba'
|
"//unpkg.com/@waline/emojis@1.1.0/tieba",
|
||||||
],
|
],
|
||||||
dark: "auto",
|
requiredMeta: ["mail"],
|
||||||
requiredMeta: ['mail'],
|
|
||||||
login: 'enable',
|
|
||||||
reaction: false,
|
reaction: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Operational Plugins
|
components: {
|
||||||
|
components: ["Badge", "BiliBili"],
|
||||||
|
},
|
||||||
|
|
||||||
feed: {
|
feed: {
|
||||||
rss: true,
|
rss: true,
|
||||||
},
|
},
|
||||||
seo: true,
|
|
||||||
sitemap: {
|
sitemap: {
|
||||||
changefreq: "weekly"
|
changefreq: "weekly",
|
||||||
},
|
},
|
||||||
|
|
||||||
// Disable features you don't want here
|
|
||||||
mdEnhance: {
|
mdEnhance: {
|
||||||
align: true,
|
|
||||||
attrs: true,
|
|
||||||
chart: true,
|
|
||||||
codetabs: true,
|
|
||||||
container: true,
|
|
||||||
demo: true,
|
|
||||||
echarts: true,
|
|
||||||
flowchart: true,
|
|
||||||
gfm: true,
|
gfm: true,
|
||||||
imgSize: true,
|
|
||||||
include: true,
|
|
||||||
katex: true,
|
|
||||||
imgLazyload: true,
|
imgLazyload: true,
|
||||||
mark: true,
|
include: true,
|
||||||
mermaid: true,
|
|
||||||
playground: {
|
|
||||||
presets: ["ts", "vue"],
|
|
||||||
},
|
|
||||||
presentation: {
|
|
||||||
plugins: ["highlight", "math", "search", "notes", "zoom"],
|
|
||||||
},
|
|
||||||
stylize: [
|
|
||||||
{
|
|
||||||
matcher: "Recommanded",
|
|
||||||
replacer: ({ tag }) => {
|
|
||||||
if (tag === "em")
|
|
||||||
return {
|
|
||||||
tag: "Badge",
|
|
||||||
attrs: { type: "tip" },
|
|
||||||
content: "Recommanded",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
sub: true,
|
|
||||||
sup: true,
|
|
||||||
tabs: true,
|
tabs: true,
|
||||||
vPre: true,
|
|
||||||
vuePlayground: true,
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
components: [
|
|
||||||
"Badge",
|
|
||||||
"BiliBili",
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
|
|
||||||
pwa: {
|
pwa: {
|
||||||
favicon: "/favicon.ico",
|
favicon: "/favicon.ico",
|
||||||
cacheHTML: false,
|
cacheHTML: false,
|
||||||
cachePic: true,
|
cachePic: true,
|
||||||
appendBase: true,
|
appendBase: true,
|
||||||
themeColor: '#f26d6d',
|
themeColor: "#f26d6d",
|
||||||
update: "hint",
|
update: "hint",
|
||||||
apple: {
|
apple: {
|
||||||
icon: "/favicon.ico",
|
icon: "/favicon.ico",
|
||||||
@@ -185,7 +141,7 @@ export default hopeTheme({
|
|||||||
sizes: "48x48",
|
sizes: "48x48",
|
||||||
type: "image/png",
|
type: "image/png",
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/client": "2.0.0-beta.61",
|
"@vuepress/client": "2.0.0-beta.61",
|
||||||
|
"@vuepress/bundler-vite": "2.0.0-beta.61",
|
||||||
"@vuepress/plugin-docsearch": "2.0.0-beta.61",
|
"@vuepress/plugin-docsearch": "2.0.0-beta.61",
|
||||||
"@vuepress/plugin-google-analytics": "2.0.0-beta.61",
|
"@vuepress/plugin-google-analytics": "2.0.0-beta.61",
|
||||||
"vue": "^3.2.47",
|
"vue": "^3.2.47",
|
||||||
|
|||||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -1,6 +1,7 @@
|
|||||||
lockfileVersion: 5.4
|
lockfileVersion: 5.4
|
||||||
|
|
||||||
specifiers:
|
specifiers:
|
||||||
|
'@vuepress/bundler-vite': 2.0.0-beta.61
|
||||||
'@vuepress/client': 2.0.0-beta.61
|
'@vuepress/client': 2.0.0-beta.61
|
||||||
'@vuepress/plugin-docsearch': 2.0.0-beta.61
|
'@vuepress/plugin-docsearch': 2.0.0-beta.61
|
||||||
'@vuepress/plugin-google-analytics': 2.0.0-beta.61
|
'@vuepress/plugin-google-analytics': 2.0.0-beta.61
|
||||||
@@ -10,6 +11,7 @@ specifiers:
|
|||||||
vuepress-theme-hope: 2.0.0-beta.206
|
vuepress-theme-hope: 2.0.0-beta.206
|
||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@vuepress/bundler-vite': 2.0.0-beta.61
|
||||||
'@vuepress/client': 2.0.0-beta.61
|
'@vuepress/client': 2.0.0-beta.61
|
||||||
'@vuepress/plugin-docsearch': 2.0.0-beta.61
|
'@vuepress/plugin-docsearch': 2.0.0-beta.61
|
||||||
'@vuepress/plugin-google-analytics': 2.0.0-beta.61
|
'@vuepress/plugin-google-analytics': 2.0.0-beta.61
|
||||||
|
|||||||
Reference in New Issue
Block a user