mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 23:40:07 +00:00
132 lines
3.2 KiB
JavaScript
132 lines
3.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: "Discordeno",
|
|
tagline: "Making Scalable Bots Easy!",
|
|
url: "https://discordeno.mod.land",
|
|
baseUrl: "/",
|
|
onBrokenLinks: "throw",
|
|
onBrokenMarkdownLinks: "warn",
|
|
favicon: "img/favicon.png",
|
|
organizationName: "discordeno",
|
|
projectName: "discordeno",
|
|
deploymentBranch: "gh-pages",
|
|
trailingSlash: false,
|
|
|
|
presets: [
|
|
[
|
|
"classic",
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
editUrl: "https://github.com/discordeno/discordeno/tree/main/site/",
|
|
},
|
|
blog: {
|
|
showReadingTime: true,
|
|
editUrl: "https://github.com/discordeno/discordeno/tree/main/site/",
|
|
},
|
|
theme: {
|
|
customCss: require.resolve("./src/css/custom.css"),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: "Discordeno",
|
|
logo: {
|
|
alt: "My Site Logo",
|
|
src: "img/logo.svg",
|
|
},
|
|
items: [
|
|
{
|
|
type: "doc",
|
|
docId: "intro",
|
|
position: "left",
|
|
label: "Tutorial",
|
|
},
|
|
{ to: "/blog", label: "Blog", position: "left" },
|
|
{
|
|
href: "https://github.com/discordeno/discordeno",
|
|
label: "GitHub",
|
|
position: "right",
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: "dark",
|
|
links: [
|
|
{
|
|
title: "Docs",
|
|
items: [
|
|
{
|
|
label: "Tutorial",
|
|
to: "/docs/intro",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "Community",
|
|
items: [
|
|
{
|
|
label: "Discord",
|
|
href: "https://discord.gg/ddeno",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: "More",
|
|
items: [
|
|
{
|
|
label: "Blog",
|
|
to: "/blog",
|
|
},
|
|
{
|
|
label: "GitHub",
|
|
href: "https://github.com/discordeno/discordeno",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © 2021 - ${new Date().getFullYear()} Discordeno.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
}),
|
|
|
|
plugins: [
|
|
// ... Your other plugins.
|
|
[
|
|
require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
{
|
|
indexDocs: true,
|
|
indexBlog: true,
|
|
indexPages: true,
|
|
docsRouteBasePath: ["/docs"],
|
|
blogRouteBasePath: ["/blog"],
|
|
language: ["en"],
|
|
hashed: true,
|
|
docsDir: ["docs"],
|
|
blogDir: ["blog"],
|
|
removeDefaultStopWordFilter: true,
|
|
highlightSearchTermsOnTargetPage: true,
|
|
searchResultLimits: 8,
|
|
searchResultContextMaxLength: 50,
|
|
},
|
|
],
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|