Skip to content

Commit

Permalink
初步编辑
Browse files Browse the repository at this point in the history
  • Loading branch information
RainBreezeMF committed Sep 16, 2023
1 parent 220a0a2 commit da23584
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 920 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@vuepress/client": "2.0.0-beta.67",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.67",
"vuepress-plugin-photo-swipe": "2.0.0-beta.237",
"vuepress-theme-hope": "2.0.0-beta.237"
}
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default defineUserConfig({
locales: {
"/": {
lang: "zh-CN",
title: "文档演示",
description: "vuepress-theme-hope 的文档演示",
title: "高木同学同人周边Go",
description: "展示由民间制作的高木同学谷子",
},
},

theme,

// Enable it with pwa
Expand Down
28 changes: 5 additions & 23 deletions src/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,11 @@ import { navbar } from "vuepress-theme-hope";

export const enNavbar = navbar([
"/",
"/demo/",
"/show/",
"/about/",
{
text: "Guide",
icon: "lightbulb",
prefix: "/guide/",
children: [
{
text: "Bar",
icon: "lightbulb",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
},
{
text: "Foo",
icon: "lightbulb",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
},
],
},
{
text: "V2 Docs",
icon: "book",
link: "https://theme-hope.vuejs.press/",
text: "高木站点导航",
icon: "link",
link: "https://takagi3.cn",
},
]);
28 changes: 5 additions & 23 deletions src/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,11 @@ import { navbar } from "vuepress-theme-hope";

export const zhNavbar = navbar([
"/zh/",
"/zh/demo/",
"/zh/show/",
"/zh/about/",
{
text: "指南",
icon: "lightbulb",
prefix: "/zh/guide/",
children: [
{
text: "Bar",
icon: "lightbulb",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "" }],
},
{
text: "Foo",
icon: "lightbulb",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "" }],
},
],
},
{
text: "V2 文档",
icon: "book",
link: "https://theme-hope.vuejs.press/zh/",
text: "高木站点导航",
icon: "link",
link: "https://takagi3.cn",
},
]);
17 changes: 4 additions & 13 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ export default hopeTheme({
hostname: "https://vuepress-theme-hope-docs-demo.netlify.app",

author: {
name: "Mr.Hope",
name: "轻虹空雨",
url: "https://mister-hope.com",
},

iconAssets: "fontawesome-with-brands",

logo: "/logo.svg",

repo: "vuepress-theme-hope/vuepress-theme-hope",
logo: "https://pic.mufeng086.com/i/2023/09/16/nc44ft.webp",

docsDir: "src",

Expand All @@ -26,7 +24,7 @@ export default hopeTheme({
// sidebar
sidebar: enSidebar,

footer: "Default footer",
footer: "<a href=\"https://vuepress.vuejs.org/\"><img src=\"https://img.shields.io/badge/VuePress-2.0.0-brightgreen?style=flat&logo=vue.js\" alt=\"VuePress\"></a> <a href=\"https://github.com/vuepress-theme-hope/vuepress-theme-hope\"><img src=\"https://img.shields.io/badge/Theme-Hope-3eaf7c?style=flat\" alt=\"Theme\"></a> <a href=\"https://vercel.com/\"><img src=\"https://img.shields.io/badge/Vercel-gray?style=flat&logo=vercel\" alt=\"Vercel\"></a>",

displayFooter: true,

Expand All @@ -45,7 +43,7 @@ export default hopeTheme({
// sidebar
sidebar: zhSidebar,

footer: "默认页脚",
footer: "<a href=\"https://vuepress.vuejs.org/\"><img src=\"https://img.shields.io/badge/VuePress-2.0.0-brightgreen?style=flat&logo=vue.js\" alt=\"VuePress\"></a> <a href=\"https://github.com/vuepress-theme-hope/vuepress-theme-hope\"><img src=\"https://img.shields.io/badge/Theme-Hope-3eaf7c?style=flat\" alt=\"Theme\"></a> <a href=\"https://vercel.com/\"><img src=\"https://img.shields.io/badge/Vercel-gray?style=flat&logo=vercel\" alt=\"Vercel\"></a>",

displayFooter: true,

Expand All @@ -65,13 +63,6 @@ export default hopeTheme({

plugins: {
// You should generate and use your own comment service
comment: {
provider: "Giscus",
repo: "vuepress-theme-hope/giscus-discussions",
repoId: "R_kgDOG_Pt2A",
category: "Announcements",
categoryId: "DIC_kwDOG_Pt2M4COD69",
},

// All features are enabled for demo, only preserve features you need here
mdEnhance: {
Expand Down
Loading

0 comments on commit da23584

Please sign in to comment.