Skip to content

Commit

Permalink
📝 使用 vuepress hope 主题
Browse files Browse the repository at this point in the history
  • Loading branch information
AzideCupric committed Mar 17, 2024
1 parent d7d761f commit ec8e580
Show file tree
Hide file tree
Showing 24 changed files with 3,479 additions and 1,727 deletions.
1 change: 1 addition & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
MD013: false
MD024: # 重复标题
siblings_only: true
MD026: false # 允许标题以符号结尾
MD033: false # 允许 html
41 changes: 11 additions & 30 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
import { defineUserConfig, defaultTheme } from "vuepress";
import { defineUserConfig } from "vuepress";
import theme from "./theme.js";

export default defineUserConfig({
base: "/",

lang: "zh-CN",
title: "Nonebot Bison",
description: "Docs for Nonebot Bison",
theme: defaultTheme({
navbar: [
{ text: "主页", link: "/" },
{
text: "使用",
children: [
{
text: "安装",
link: "/usage/install.md",
activeMatch: "^/usage/install",
},
{
text: "入门",
link: "/usage/easy-use.md",
activeMatch: "^/usage/easy-use",
},
{
text: "详述",
link: "/usage",
activeMatch: "^/usage$",
},
],
},
{ text: "开发", link: "/dev/" },
{ text: "Github", link: "https://github.com/felinae98/nonebot-bison" },
],
}),
title: "NoneBot Bison",
description: "NoneBot Bison 文档",

theme,

// 和 PWA 一起启用
// shouldPrefetch: false,
});
33 changes: 33 additions & 0 deletions docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { navbar } from "vuepress-theme-hope";

export default navbar([
"/",
{
text: "指南",
icon: "book",
prefix: "/usage/",
children: [
{
text: "安装",
icon: "box-open",
link: "install",
},
{
text: "快速开始",
icon: "truck-fast",
link: "easy-use",
},
{
text: "详细介绍",
icon: "motorcycle",
link: "",
activeMatch: "^/usage/?$",
},
],
},
{
text: "开发",
icon: "flask",
link: "/dev/",
},
]);
1 change: 1 addition & 0 deletions docs/.vuepress/public/assets/image/blog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/assets/image/box.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/assets/image/github-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/assets/image/github-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ec8e580

Please sign in to comment.