mirror of
https://github.com/waku-org/docs.waku.org.git
synced 2025-02-22 09:48:11 +00:00
179 lines
3.6 KiB
JavaScript
179 lines
3.6 KiB
JavaScript
// @ts-check
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
require("dotenv").config();
|
|
|
|
/** @type {import("@docusaurus/types").Config} */
|
|
const config = {
|
|
title: "Waku Documentation Portal",
|
|
url: "https://waku.guide/",
|
|
baseUrl: "/",
|
|
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"]
|
|
},
|
|
presets: [
|
|
[
|
|
"@acid-info/logos-docusaurus-preset",
|
|
({
|
|
businessUnit: "Waku",
|
|
customSiteConfig: true,
|
|
docs: {
|
|
routeBasePath: "/",
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
editUrl: "https://github.com/waku-org/waku.guide/tree/develop/"
|
|
},
|
|
theme: {
|
|
name: "docusaurus-default",
|
|
options: {
|
|
customCss: [require.resolve("./src/css/custom.scss")]
|
|
}
|
|
}
|
|
})
|
|
]
|
|
],
|
|
staticDirectories: ["static"],
|
|
themeConfig: ({
|
|
docs: {
|
|
sidebar: {
|
|
hideable: false
|
|
}
|
|
},
|
|
navbar: {
|
|
title: "Waku",
|
|
logo: {
|
|
srcDark: "logo_white.svg"
|
|
},
|
|
items: [
|
|
{
|
|
type: "docSidebar",
|
|
position: "right",
|
|
sidebarId: "main",
|
|
label: "Getting Started"
|
|
},
|
|
{
|
|
type: "dropdown",
|
|
label: "Waku Clients",
|
|
position: "right",
|
|
items: [
|
|
{
|
|
label: "Overview",
|
|
to: "/overview/clients"
|
|
},
|
|
{
|
|
label: "JS Waku",
|
|
to: "/clients/js-waku"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
to: "/powered-by-waku",
|
|
label: "Powered by Waku",
|
|
position: "right"
|
|
},
|
|
{
|
|
to: "/community",
|
|
label: "Community",
|
|
position: "right"
|
|
}
|
|
]
|
|
},
|
|
announcementBar: {
|
|
content: "While Waku is still in development and needs to prepare for extensive adoption, it is already being used by <a href='/overview/who-is-using-waku'>Status, XMTP, and Railgun</a>. Join our <a href='https://discord.gg/Nrac59MfSX'>Discord Community</a> to stay updated on our progress.",
|
|
backgroundColor: "#EBEDF0",
|
|
textColor: "#1B1B1D",
|
|
isCloseable: true
|
|
},
|
|
footer: {
|
|
links: [
|
|
{
|
|
title: "Waku Clients",
|
|
items: [
|
|
{
|
|
to: "/overview/clients",
|
|
label: "Overview"
|
|
},
|
|
{
|
|
to: "/clients/js-waku",
|
|
label: "JS Waku"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Community",
|
|
items: [{
|
|
href: "https://forum.vac.dev/",
|
|
label: "Discourse"
|
|
},
|
|
{
|
|
href: "https://discord.gg/Nrac59MfSX",
|
|
label: "Discord"
|
|
},
|
|
{
|
|
href: "https://twitter.com/waku_org",
|
|
label: "Twitter"
|
|
},
|
|
{
|
|
href: "https://t.me/waku_org",
|
|
label: "Telegram"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Resources",
|
|
items: [{
|
|
href: "https://github.com/waku-org",
|
|
label: "GitHub"
|
|
},
|
|
{
|
|
href: "https://vac.dev/research",
|
|
label: "Blog"
|
|
},
|
|
{
|
|
href: "https://rfc.vac.dev/",
|
|
label: "Vac RFCs"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Legal",
|
|
items: [{
|
|
href: "https://waku.org/terms-of-use",
|
|
label: "Terms of Use"
|
|
},
|
|
{
|
|
href: "https://waku.org/privacy-policy",
|
|
label: "Privacy Policy"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
colorMode: {
|
|
defaultMode: "light",
|
|
disableSwitch: false,
|
|
respectPrefersColorScheme: false
|
|
}
|
|
}),
|
|
plugins: [
|
|
[
|
|
"@easyops-cn/docusaurus-search-local",
|
|
{
|
|
hashed: true,
|
|
indexDocs: true,
|
|
indexPages: true
|
|
}
|
|
]
|
|
],
|
|
themes: ["@docusaurus/theme-mermaid"],
|
|
markdown: {
|
|
mermaid: true
|
|
}
|
|
};
|
|
|
|
module.exports = config; |