👽 fix theme smooth scroll

This commit is contained in:
yanyongyu 2020-10-18 02:30:01 +08:00
parent 1b6924a104
commit 8db70dbb0c
2 changed files with 40 additions and 40 deletions

View File

@ -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,23 +19,23 @@ 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: "nonebot", theme: "nonebot",
@ -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>"
}, }
], ]
], ]
}); });

2
package-lock.json generated
View File

@ -10297,7 +10297,7 @@
} }
}, },
"vuepress-theme-nonebot": { "vuepress-theme-nonebot": {
"version": "git+https://github.com/nonebot/vuepress-theme-nonebot.git#435dd344a8f3522fba5309ae413002fb5cd48981", "version": "git+https://github.com/nonebot/vuepress-theme-nonebot.git#886b82a648d8d216254a5bab87add573d30f5d28",
"from": "git+https://github.com/nonebot/vuepress-theme-nonebot.git", "from": "git+https://github.com/nonebot/vuepress-theme-nonebot.git",
"dev": true, "dev": true,
"requires": { "requires": {