mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
➕ use custom theme
This commit is contained in:
parent
56c9c24dc6
commit
c5a30a8a79
@ -1,10 +1,10 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
module.exports = context => ({
|
module.exports = (context) => ({
|
||||||
title: "NoneBot",
|
title: "NoneBot",
|
||||||
description: "基于 酷Q 的 Python 异步 QQ 机器人框架",
|
description: "基于 酷Q 的 Python 异步 QQ 机器人框架",
|
||||||
markdown: {
|
markdown: {
|
||||||
lineNumbers: true
|
lineNumbers: true,
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Extra tags to be injected to the page HTML `<head>`
|
* Extra tags to be injected to the page HTML `<head>`
|
||||||
@ -19,26 +19,26 @@ module.exports = context => ({
|
|||||||
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
|
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
|
||||||
[
|
[
|
||||||
"meta",
|
"meta",
|
||||||
{ name: "apple-mobile-web-app-status-bar-style", content: "black" }
|
{ name: "apple-mobile-web-app-status-bar-style", content: "black" },
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"link",
|
"link",
|
||||||
{
|
{
|
||||||
rel: "stylesheet",
|
rel: "stylesheet",
|
||||||
href:
|
href:
|
||||||
"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css"
|
"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
locales: {
|
locales: {
|
||||||
"/": {
|
"/": {
|
||||||
lang: "zh-CN",
|
lang: "zh-CN",
|
||||||
title: "NoneBot",
|
title: "NoneBot",
|
||||||
description: "基于 酷Q 的 Python 异步 QQ 机器人框架"
|
description: "基于 酷Q 的 Python 异步 QQ 机器人框架",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
theme: "titanium",
|
theme: "nonebot",
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
logo: "/logo.png",
|
logo: "/logo.png",
|
||||||
repo: "nonebot/nonebot2",
|
repo: "nonebot/nonebot2",
|
||||||
@ -58,7 +58,7 @@ module.exports = context => ({
|
|||||||
nav: [
|
nav: [
|
||||||
{ text: "主页", link: "/" },
|
{ text: "主页", link: "/" },
|
||||||
{ text: "指南", link: "/guide/" },
|
{ text: "指南", link: "/guide/" },
|
||||||
{ text: "API", link: "/api/" }
|
{ text: "API", link: "/api/" },
|
||||||
],
|
],
|
||||||
sidebarDepth: 2,
|
sidebarDepth: 2,
|
||||||
sidebar: {
|
sidebar: {
|
||||||
@ -74,9 +74,9 @@ module.exports = context => ({
|
|||||||
"getting-started",
|
"getting-started",
|
||||||
"creating-a-project",
|
"creating-a-project",
|
||||||
"basic-configuration",
|
"basic-configuration",
|
||||||
"writing-a-plugin"
|
"writing-a-plugin",
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
"/api/": [
|
"/api/": [
|
||||||
{
|
{
|
||||||
@ -86,66 +86,66 @@ module.exports = context => ({
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: "nonebot 模块",
|
title: "nonebot 模块",
|
||||||
path: "nonebot"
|
path: "nonebot",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.config 模块",
|
title: "nonebot.config 模块",
|
||||||
path: "config"
|
path: "config",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.matcher 模块",
|
title: "nonebot.matcher 模块",
|
||||||
path: "matcher"
|
path: "matcher",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.rule 模块",
|
title: "nonebot.rule 模块",
|
||||||
path: "rule"
|
path: "rule",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.permission 模块",
|
title: "nonebot.permission 模块",
|
||||||
path: "permission"
|
path: "permission",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.sched 模块",
|
title: "nonebot.sched 模块",
|
||||||
path: "sched"
|
path: "sched",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.log 模块",
|
title: "nonebot.log 模块",
|
||||||
path: "log"
|
path: "log",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.utils 模块",
|
title: "nonebot.utils 模块",
|
||||||
path: "utils"
|
path: "utils",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.typing 模块",
|
title: "nonebot.typing 模块",
|
||||||
path: "typing"
|
path: "typing",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.exception 模块",
|
title: "nonebot.exception 模块",
|
||||||
path: "exception"
|
path: "exception",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.drivers 模块",
|
title: "nonebot.drivers 模块",
|
||||||
path: "drivers/"
|
path: "drivers/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.drivers.fastapi 模块",
|
title: "nonebot.drivers.fastapi 模块",
|
||||||
path: "drivers/fastapi"
|
path: "drivers/fastapi",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.adapters 模块",
|
title: "nonebot.adapters 模块",
|
||||||
path: "adapters/"
|
path: "adapters/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "nonebot.adapters.cqhttp 模块",
|
title: "nonebot.adapters.cqhttp 模块",
|
||||||
path: "adapters/cqhttp"
|
path: "adapters/cqhttp",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
@ -158,16 +158,16 @@ module.exports = context => ({
|
|||||||
pagesSourceDir: path.resolve(context.sourceDir, "..", "pages"),
|
pagesSourceDir: path.resolve(context.sourceDir, "..", "pages"),
|
||||||
onNewVersion(version, versionDestPath) {
|
onNewVersion(version, versionDestPath) {
|
||||||
console.log(`Created version ${version} in ${versionDestPath}`);
|
console.log(`Created version ${version} in ${versionDestPath}`);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"container",
|
"container",
|
||||||
{
|
{
|
||||||
type: "vue",
|
type: "vue",
|
||||||
before: '<pre class="vue-container"><code>',
|
before: '<pre class="vue-container"><code>',
|
||||||
after: "</code></pre>"
|
after: "</code></pre>",
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
]
|
],
|
||||||
});
|
});
|
||||||
|
1349
package-lock.json
generated
1349
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -20,14 +20,14 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vuepress/plugin-back-to-top": "^1.5.4",
|
"@vuepress/plugin-back-to-top": "^1.7.1",
|
||||||
"@vuepress/plugin-medium-zoom": "^1.5.4",
|
"@vuepress/plugin-medium-zoom": "^1.7.1",
|
||||||
"vuepress": "^1.5.4",
|
"vuepress": "^1.7.1",
|
||||||
"vuepress-plugin-versioning": "^4.5.0",
|
"vuepress-plugin-versioning": "git+https://github.com/nonebot/vuepress-plugin-versioning.git",
|
||||||
"vuepress-theme-titanium": "^4.5.1"
|
"vuepress-theme-nonebot": "git+https://github.com/nonebot/vuepress-theme-nonebot.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vuetify": "^2.3.10",
|
"vuetify": "^2.3.14",
|
||||||
"wowjs": "^1.1.3"
|
"wowjs": "^1.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user