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
2023-05-19 23:35:51 +00:00
/** @type {import("@docusaurus/types").Config} */
2022-08-04 11:42:53 +00:00
const config = {
2023-05-19 23:35:51 +00:00
title : "Waku Documentation Portal" ,
url : "https://waku.guide/" ,
baseUrl : "/" ,
onBrokenLinks : "throw" ,
onBrokenMarkdownLinks : "warn" ,
2022-08-04 11:42:53 +00:00
2023-05-19 23:35:51 +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 : {
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/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 : "left" ,
sidebarId : "main" ,
label : "Getting Started"
2023-05-20 00:15:16 +00:00
} ,
{
type : "dropdown" ,
label : "Waku Clients" ,
position : "left" ,
items : [
{
label : "JS-Waku" ,
to : "/clients/js-waku"
}
]
2023-05-19 23:35:51 +00:00
}
]
} ,
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 : [ ]
} ,
{
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
}
2022-08-04 11:42:53 +00:00
} ;
2023-05-19 23:35:51 +00:00
module . exports = config ;