From 4b4bfc76281fad6f6ed92149d297491d3f0319c5 Mon Sep 17 00:00:00 2001 From: tomdang Date: Thu, 3 Mar 2022 21:57:39 +0800 Subject: [PATCH] some configuration changes --- .vuepress/sidebar/en.ts | 49 -------------------------- .vuepress/sidebar/index.ts | 1 - .vuepress/sidebar/zh.ts | 38 -------------------- .vuepress/themeConfig.ts | 71 +++++++++++++++++++++----------------- 4 files changed, 39 insertions(+), 120 deletions(-) delete mode 100644 .vuepress/sidebar/en.ts diff --git a/.vuepress/sidebar/en.ts b/.vuepress/sidebar/en.ts deleted file mode 100644 index 17012c9..0000000 --- a/.vuepress/sidebar/en.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { defineSidebarConfig } from "vuepress-theme-hope"; - -export const en = defineSidebarConfig({ - "/": [ - "", - "home", - "slide", - { - icon: "creative", - text: "Guide", - collapsable: true, - prefix: "guide/", - link: "guide/", - children: ["page", "markdown", "disable", "encrypt"], - }, - { - text: "Articles", - icon: "note", - prefix: "posts/", - children: [ - { - text: "Articles 1-4", - icon: "note", - collapsable: true, - prefix: "article/", - children: ["article1", "article2", "article3", "article4"], - }, - { - text: "Articles 5-12", - icon: "note", - children: [ - { - text: "Articles 5-8", - icon: "note", - collapsable: true, - prefix: "article/", - children: ["article5", "article6", "article7", "article8"], - }, - { - text: "Articles 9-12", - icon: "note", - children: ["article9", "article10", "article11", "article12"], - }, - ], - }, - ], - }, - ], -}); diff --git a/.vuepress/sidebar/index.ts b/.vuepress/sidebar/index.ts index 67e2901..2a11ae4 100644 --- a/.vuepress/sidebar/index.ts +++ b/.vuepress/sidebar/index.ts @@ -1,2 +1 @@ -export * from "./en"; export * from "./zh"; diff --git a/.vuepress/sidebar/zh.ts b/.vuepress/sidebar/zh.ts index bcc074f..e6e040a 100644 --- a/.vuepress/sidebar/zh.ts +++ b/.vuepress/sidebar/zh.ts @@ -5,43 +5,5 @@ export const zh = defineSidebarConfig({ "", "home", "slide", - { - text: "如何使用", - icon: "creative", - prefix: "guide/", - children: ["", "page", "markdown", "disable", "encrypt"], - }, - { - text: "文章", - icon: "note", - prefix: "posts/", - children: [ - { - text: "文章 1-4", - icon: "note", - collapsable: true, - prefix: "article/", - children: ["article1", "article2", "article3", "article4"], - }, - { - text: "文章 5-12", - icon: "note", - children: [ - { - text: "文章 5-8", - icon: "note", - collapsable: true, - prefix: "article/", - children: ["article5", "article6", "article7", "article8"], - }, - { - text: "文章 9-12", - icon: "note", - children: ["article9", "article10", "article11", "article12"], - }, - ], - }, - ], - }, ], }); diff --git a/.vuepress/themeConfig.ts b/.vuepress/themeConfig.ts index 2039587..56b4a7a 100644 --- a/.vuepress/themeConfig.ts +++ b/.vuepress/themeConfig.ts @@ -16,39 +16,47 @@ export default defineThemeConfig({ repo: "http://git.xjtustei.nteren.net/XJTUSTEI/stei-blog", - docsDir: "demo/src", + docsDir: "/", + + contributors: true, + + editLink: true, + + editLinkPattern: ":repo/_edit/:branch/:path", + + docsBranch: "master", blog: { medias: { - Baidu: "https://example.com", - Bitbucket: "https://example.com", - Dingding: "https://example.com", - Discord: "https://example.com", - Dribbble: "https://example.com", - Email: "https://example.com", - Evernote: "https://example.com", - Facebook: "https://example.com", - Flipboard: "https://example.com", - Gitee: "https://example.com", - GitHub: "https://example.com", - Gitlab: "https://example.com", - Gmail: "https://example.com", - Instagram: "https://example.com", - Lines: "https://example.com", - Linkedin: "https://example.com", - Pinterest: "https://example.com", - Pocket: "https://example.com", - QQ: "https://example.com", - Qzone: "https://example.com", - Reddit: "https://example.com", - Rss: "https://example.com", - Steam: "https://example.com", - Twitter: "https://example.com", - Wechat: "https://example.com", - Weibo: "https://example.com", - Whatsapp: "https://example.com", - Youtube: "https://example.com", - Zhihu: "https://example.com", + // Baidu: "https://example.com", + // Bitbucket: "https://example.com", + // Dingding: "https://example.com", + // Discord: "https://example.com", + // Dribbble: "https://example.com", + Email: "xjtustei@outlook.com", + // Evernote: "https://example.com", + // Facebook: "https://example.com", + // Flipboard: "https://example.com", + Gitee: "https://gitee.com/xjtu_stei", + // GitHub: "https://example.com", + // Gitlab: "https://example.com", + // Gmail: "https://example.com", + // Instagram: "https://example.com", + // Lines: "https://example.com", + // Linkedin: "https://example.com", + // Pinterest: "https://example.com", + // Pocket: "https://example.com", + // QQ: "https://example.com", + // Qzone: "https://example.com", + // Reddit: "https://example.com", + // Rss: "https://example.com", + // Steam: "https://example.com", + // Twitter: "https://example.com", + // Wechat: "https://example.com", + // Weibo: "https://example.com", + // Whatsapp: "https://example.com", + // Youtube: "https://example.com", + // Zhihu: "https://example.com", }, }, @@ -95,14 +103,13 @@ export default defineThemeConfig({ // page meta metaLocales: { - editLink: "在 GitHub 上编辑此页", + editLink: "在 Gitea 上编辑此页", }, }, }, encrypt: { config: { - "/guide/encrypt.html": ["1234"], }, },