mirror of
https://github.com/acid-info/waku.guide.git
synced 2025-02-23 15:28:29 +00:00
Added an announcement bar that reflects the fact that existing waku network can't be used for production apps nor mission critical systems (involving economical value)
115 lines
2.8 KiB
JavaScript
115 lines
2.8 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 Guides",
|
|
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",
|
|
/** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
|
|
({
|
|
businessUnit: "Waku",
|
|
customSiteConfig: true,
|
|
docs: {
|
|
routeBasePath: "/",
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
editUrl: "https://github.com/waku-org/waku.guide/tree/staging/",
|
|
},
|
|
theme: {
|
|
name: "docusaurus-default",
|
|
options: {
|
|
customCss: [require.resolve("./src/css/custom.scss")],
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: "Waku",
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
position: 'left',
|
|
sidebarId: 'main',
|
|
label: 'Overview',
|
|
},
|
|
{
|
|
type: 'docSidebar',
|
|
position: 'left',
|
|
sidebarId: 'browser',
|
|
label: 'JavaScript (Browser)',
|
|
},
|
|
],
|
|
},
|
|
announcementBar: {
|
|
id: "support_us",
|
|
content:
|
|
"Waku is not production ready yet. Join our <a href='https://discord.gg/Nrac59MfSX'>discord community</a> to stay updated.",
|
|
backgroundColor: "#EBEDF0",
|
|
textColor: "#1B1B1D",
|
|
isCloseable: true,
|
|
},
|
|
footer: {
|
|
links: [
|
|
{
|
|
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",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
|
|
plugins: [
|
|
[
|
|
"@easyops-cn/docusaurus-search-local",
|
|
{
|
|
hashed: true,
|
|
indexDocs: true,
|
|
indexPages: true,
|
|
},
|
|
],
|
|
],
|
|
themes: ["@docusaurus/theme-mermaid"],
|
|
markdown: {
|
|
mermaid: true,
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|