mirror of https://github.com/ByConity/ByConity
151 lines
4.2 KiB
JavaScript
151 lines
4.2 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
const lightCodeTheme = require("prism-react-renderer/themes/github");
|
|
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: "ByConity",
|
|
tagline: "云原生大数据分析引擎",
|
|
favicon: "img/favicon.ico",
|
|
|
|
// Set the production url of your site here
|
|
url: "https://byconity.github.io",
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
baseUrl: "/",
|
|
|
|
// GitHub pages deployment config.
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
organizationName: "ByConity", // Usually your GitHub org/user name.
|
|
projectName: "ByConity", // Usually your repo name.
|
|
|
|
onBrokenLinks: "throw",
|
|
onBrokenMarkdownLinks: "warn",
|
|
|
|
// Even if you don't use internalization, you can use this field to set useful
|
|
// metadata like html lang. For example, if your site is Chinese, you may want
|
|
// to replace "en" with "zh-Hans".
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: ["en", "zh-cn"],
|
|
},
|
|
|
|
plugins: ["docusaurus-plugin-sass"],
|
|
|
|
presets: [
|
|
[
|
|
"classic",
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
path: "../docs/en",
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
// Please change this to your repo.
|
|
// Remove this to remove the "edit this page" links.
|
|
editUrl: "https://github.com/ByConity/ByConity/tree/main/website",
|
|
editLocalizedFiles: true,
|
|
},
|
|
blog: {
|
|
showReadingTime: true,
|
|
// Please change this to your repo.
|
|
// Remove this to remove the "edit this page" links.
|
|
editUrl: "https://github.com/ByConity/ByConity/tree/main/website",
|
|
},
|
|
theme: {
|
|
customCss: require.resolve("./src/css/custom.css"),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
// Replace with your project's social card
|
|
image: "img/docusaurus-social-card.jpg",
|
|
navbar: {
|
|
title: "ByConity",
|
|
logo: {
|
|
alt: "ByConity Logo",
|
|
src: "img/logo.png",
|
|
},
|
|
items: [
|
|
{
|
|
type: "doc",
|
|
docId: "ByConity简介/主要原理概念",
|
|
position: "left",
|
|
label: "Docs",
|
|
},
|
|
{ to: "/blog", label: "Blog", position: "left" },
|
|
{ to: "/community", label: "Community", position: "left" },
|
|
{ to: "/users", label: "Users", position: "left" },
|
|
{
|
|
type: "localeDropdown",
|
|
position: "right",
|
|
},
|
|
{
|
|
href: "https://github.com/ByConity/ByConity",
|
|
label: "GitHub",
|
|
position: "right",
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: "dark",
|
|
links: [
|
|
{
|
|
title: "Docs",
|
|
items: [
|
|
{
|
|
label: "Docs",
|
|
to: "/docs/ByConity简介/主要原理概念",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Community",
|
|
items: [
|
|
{
|
|
label: "Stack Overflow",
|
|
href: "https://stackoverflow.com/questions/tagged/docusaurus",
|
|
},
|
|
{
|
|
label: "Discord",
|
|
href: "https://discordapp.com/invite/docusaurus",
|
|
},
|
|
{
|
|
label: "Twitter",
|
|
href: "https://twitter.com/docusaurus",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "More",
|
|
items: [
|
|
{
|
|
label: "Blog",
|
|
to: "/blog",
|
|
},
|
|
{
|
|
label: "GitHub",
|
|
href: "https://github.com/ByConity/ByConity",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} ByteDance.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
colorMode: {
|
|
disableSwitch: true,
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = config;
|