加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docusaurus.config.js 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
小狐狸 提交于 2022-05-12 21:34 . 修改0509
module.exports = {
title: "Vbook",
tagline: "Vbook",
url: "http://vbook.gitee.io/mysql/",
baseUrl: "/mysql/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "Baiqian Co.,Ltd",
projectName: "dbmd",
// scripts: ["/vbook/script/baidutongji.js"],
themeConfig: {
autoCollapseSidebarCategories: true,
prism: {
additionalLanguages: ["powershell", "csharp", "sql"],
// theme: require("prism-react-renderer/themes/github"),
// darkTheme: require("prism-react-renderer/themes/dracula"),
},
algolia: {
// appId: "XYY4NGVXSA",
// apiKey: "957b35892d68e9ac86c35c96d89dcedf",
// indexName: "furion",
// contextualSearch: true,
appId: "IP979HX57W",
apiKey: "fca82ddffae79c4a7142c6cf84ad298d",
// apiKey: "47d0c1f82d921b752a5c8915b90cac02",
indexName: "mysql",
contextualSearch: true,
},
navbar: {
title: "MySQL笔记",
logo: {
alt: "vbook Logo",
src: "img/vbook.png",
},
hideOnScroll: true,
items: [
{
to: "docs/dev/01/dev_intro",
activeBasePath: "docs/dev",
label: "DEV文档",
position: "left",
},
{
to: "docs/dba/01/dba_intro",
activeBasePath: "docs/dba",
label: "DBA文档",
position: "left",
},
{
to: "docs/test/sql_intro",
activeBasePath: "docs/test",
label: "练习",
position: "left",
},
{
label: "Gitee",
position: "right",
href: "https://gitee.com/vbook/vbook-mysql",
},
],
},
footer: {
style: "light",
copyright: `Copyright © ${
new Date().getFullYear() - 1
}-${new Date().getFullYear()} vbook`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://gitee.com/vbook/vbook-mysql/blob/master",
showLastUpdateTime: true,
showLastUpdateAuthor: true,
// sidebarCollapsible: true,
},
// blog: {
// showReadingTime: true,
// editUrl: "https://gitee.com/dotnetchina/Furion/tree/net6/handbook/",
// },
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化