Browse Source

some configuration changes

pull/1/head
tomdang 3 years ago
parent
commit
4b4bfc7628
Signed by: tomdang
GPG Key ID: 794FF55A0B3D0992
  1. 49
      .vuepress/sidebar/en.ts
  2. 1
      .vuepress/sidebar/index.ts
  3. 38
      .vuepress/sidebar/zh.ts
  4. 71
      .vuepress/themeConfig.ts

49
.vuepress/sidebar/en.ts

@ -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"],
},
],
},
],
},
],
});

1
.vuepress/sidebar/index.ts

@ -1,2 +1 @@
export * from "./en";
export * from "./zh"; export * from "./zh";

38
.vuepress/sidebar/zh.ts

@ -5,43 +5,5 @@ export const zh = defineSidebarConfig({
"", "",
"home", "home",
"slide", "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"],
},
],
},
],
},
], ],
}); });

71
.vuepress/themeConfig.ts

@ -16,39 +16,47 @@ export default defineThemeConfig({
repo: "http://git.xjtustei.nteren.net/XJTUSTEI/stei-blog", 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: { blog: {
medias: { medias: {
Baidu: "https://example.com", // Baidu: "https://example.com",
Bitbucket: "https://example.com", // Bitbucket: "https://example.com",
Dingding: "https://example.com", // Dingding: "https://example.com",
Discord: "https://example.com", // Discord: "https://example.com",
Dribbble: "https://example.com", // Dribbble: "https://example.com",
Email: "https://example.com", Email: "xjtustei@outlook.com",
Evernote: "https://example.com", // Evernote: "https://example.com",
Facebook: "https://example.com", // Facebook: "https://example.com",
Flipboard: "https://example.com", // Flipboard: "https://example.com",
Gitee: "https://example.com", Gitee: "https://gitee.com/xjtu_stei",
GitHub: "https://example.com", // GitHub: "https://example.com",
Gitlab: "https://example.com", // Gitlab: "https://example.com",
Gmail: "https://example.com", // Gmail: "https://example.com",
Instagram: "https://example.com", // Instagram: "https://example.com",
Lines: "https://example.com", // Lines: "https://example.com",
Linkedin: "https://example.com", // Linkedin: "https://example.com",
Pinterest: "https://example.com", // Pinterest: "https://example.com",
Pocket: "https://example.com", // Pocket: "https://example.com",
QQ: "https://example.com", // QQ: "https://example.com",
Qzone: "https://example.com", // Qzone: "https://example.com",
Reddit: "https://example.com", // Reddit: "https://example.com",
Rss: "https://example.com", // Rss: "https://example.com",
Steam: "https://example.com", // Steam: "https://example.com",
Twitter: "https://example.com", // Twitter: "https://example.com",
Wechat: "https://example.com", // Wechat: "https://example.com",
Weibo: "https://example.com", // Weibo: "https://example.com",
Whatsapp: "https://example.com", // Whatsapp: "https://example.com",
Youtube: "https://example.com", // Youtube: "https://example.com",
Zhihu: "https://example.com", // Zhihu: "https://example.com",
}, },
}, },
@ -95,14 +103,13 @@ export default defineThemeConfig({
// page meta // page meta
metaLocales: { metaLocales: {
editLink: "在 GitHub 上编辑此页", editLink: "在 Gitea 上编辑此页",
}, },
}, },
}, },
encrypt: { encrypt: {
config: { config: {
"/guide/encrypt.html": ["1234"],
}, },
}, },

Loading…
Cancel
Save