2022-08-04 11:42:53 +00:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
2023-01-23 09:37:39 +00:00
|
|
|
require("dotenv").config();
|
2022-08-04 11:42:53 +00:00
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
2022-11-08 02:25:45 +00:00
|
|
|
title: "Waku Guides",
|
|
|
|
url: "https://waku.guide/",
|
2022-11-07 23:42:05 +00:00
|
|
|
baseUrl: "/",
|
|
|
|
onBrokenLinks: "throw",
|
|
|
|
onBrokenMarkdownLinks: "warn",
|
2022-08-04 11:42:53 +00:00
|
|
|
|
|
|
|
// 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: {
|
2022-11-07 23:42:05 +00:00
|
|
|
defaultLocale: "en",
|
2022-12-19 11:26:42 +00:00
|
|
|
locales: ["en"],
|
2022-08-04 11:42:53 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
2023-01-23 09:37:39 +00:00
|
|
|
"@acid-info/logos-docusaurus-preset",
|
|
|
|
/** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
|
2022-08-04 11:42:53 +00:00
|
|
|
({
|
2023-01-23 09:37:39 +00:00
|
|
|
businessUnit: "Waku",
|
|
|
|
customSiteConfig: true,
|
2022-08-04 11:42:53 +00:00
|
|
|
docs: {
|
2022-11-11 14:22:14 +00:00
|
|
|
routeBasePath: "/",
|
2022-11-07 23:42:05 +00:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
2023-05-04 03:23:44 +00:00
|
|
|
editUrl: "https://github.com/waku-org/waku.guide/tree/develop/",
|
2022-08-04 11:42:53 +00:00
|
|
|
},
|
|
|
|
theme: {
|
2023-03-17 11:42:43 +00:00
|
|
|
name: "docusaurus-default",
|
2023-01-23 09:37:39 +00:00
|
|
|
options: {
|
|
|
|
customCss: [require.resolve("./src/css/custom.scss")],
|
|
|
|
},
|
2022-12-19 11:26:42 +00:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
2022-08-04 11:42:53 +00:00
|
|
|
],
|
2023-03-23 17:58:57 +00:00
|
|
|
staticDirectories: ["static"],
|
2023-01-23 09:37:39 +00:00
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
|
2023-03-17 11:42:43 +00:00
|
|
|
({
|
2023-03-23 17:58:57 +00:00
|
|
|
colorMode: {
|
|
|
|
defaultMode: "light",
|
|
|
|
disableSwitch: false,
|
|
|
|
},
|
2023-03-17 11:42:43 +00:00
|
|
|
navbar: {
|
|
|
|
title: "Waku",
|
2023-03-23 17:58:57 +00:00
|
|
|
logo: {
|
|
|
|
srcDark: "logo_white.svg",
|
|
|
|
},
|
2023-03-17 11:42:43 +00:00
|
|
|
items: [
|
|
|
|
{
|
2023-03-21 11:08:00 +00:00
|
|
|
type: 'docSidebar',
|
|
|
|
position: 'left',
|
|
|
|
sidebarId: 'main',
|
|
|
|
label: 'Overview',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'docSidebar',
|
|
|
|
position: 'left',
|
|
|
|
sidebarId: 'browser',
|
|
|
|
label: 'JavaScript (Browser)',
|
2023-03-17 11:42:43 +00:00
|
|
|
},
|
|
|
|
],
|
2023-03-22 05:45:36 +00:00
|
|
|
},
|
|
|
|
announcementBar: {
|
|
|
|
content:
|
2023-05-04 03:23:44 +00:00
|
|
|
"Waku is not production ready yet. Join our <a href='https://discord.gg/Nrac59MfSX'>Discord Community</a> to stay updated.",
|
2023-03-22 05:45:36 +00:00
|
|
|
backgroundColor: "#EBEDF0",
|
|
|
|
textColor: "#1B1B1D",
|
|
|
|
isCloseable: true,
|
2023-03-17 11:42:43 +00:00
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
2023-05-04 03:23:44 +00:00
|
|
|
{
|
|
|
|
title: "Legal",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: "https://waku.org/terms-of-use",
|
|
|
|
label: "Terms of Use",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://waku.org/privacy-policy",
|
|
|
|
label: "Privacy Policy",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-03-17 11:42:43 +00:00
|
|
|
{
|
|
|
|
title: "Community",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: "https://forum.vac.dev/",
|
|
|
|
label: "Discourse",
|
|
|
|
},
|
|
|
|
{
|
2023-03-21 10:32:23 +00:00
|
|
|
href: "https://discord.gg/Nrac59MfSX",
|
|
|
|
label: "Discord",
|
2023-03-17 11:42:43 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://twitter.com/waku_org",
|
|
|
|
label: "Twitter",
|
|
|
|
},
|
2023-03-21 10:32:23 +00:00
|
|
|
{
|
|
|
|
href: "https://t.me/waku_org",
|
|
|
|
label: "Telegram",
|
|
|
|
},
|
2023-05-04 03:23:44 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Resources",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
href: "https://github.com/waku-org",
|
|
|
|
label: "GitHub",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://vac.dev/research",
|
|
|
|
label: "Blog",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://vac.dev/",
|
|
|
|
label: "Vac",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://rfc.vac.dev/",
|
|
|
|
label: "Vac RFCs",
|
|
|
|
},
|
|
|
|
],
|
2023-03-17 11:42:43 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-03-22 05:26:57 +00:00
|
|
|
colorMode: {
|
|
|
|
defaultMode: "light",
|
|
|
|
disableSwitch: false,
|
|
|
|
respectPrefersColorScheme: false,
|
|
|
|
},
|
2023-03-17 11:42:43 +00:00
|
|
|
}),
|
2023-01-23 09:37:39 +00:00
|
|
|
|
2023-03-17 11:42:43 +00:00
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
"@easyops-cn/docusaurus-search-local",
|
|
|
|
{
|
|
|
|
hashed: true,
|
|
|
|
indexDocs: true,
|
|
|
|
indexPages: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2022-12-19 11:26:42 +00:00
|
|
|
themes: ["@docusaurus/theme-mermaid"],
|
|
|
|
markdown: {
|
|
|
|
mermaid: true,
|
|
|
|
},
|
2022-08-04 11:42:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|