2022-08-04 13:42:53 +02:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
2023-01-23 15:07:39 +05:30
require ( "dotenv" ) . config ( ) ;
2022-08-04 13:42:53 +02:00
/** @type {import('@docusaurus/types').Config} */
const config = {
2023-05-04 13:46:34 +01:00
title : "Waku Documentation Portal" ,
2022-11-08 13:25:45 +11:00
url : "https://waku.guide/" ,
2022-11-08 10:42:05 +11:00
baseUrl : "/" ,
onBrokenLinks : "throw" ,
onBrokenMarkdownLinks : "warn" ,
2022-08-04 13:42:53 +02: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-08 10:42:05 +11:00
defaultLocale : "en" ,
2022-12-19 16:56:42 +05:30
locales : [ "en" ] ,
2022-08-04 13:42:53 +02:00
} ,
presets : [
[
2023-01-23 15:07:39 +05:30
"@acid-info/logos-docusaurus-preset" ,
/** @type {import('@acid-info/logos-docusaurus-preset').PluginOptions} */
2022-08-04 13:42:53 +02:00
( {
2023-01-23 15:07:39 +05:30
businessUnit : "Waku" ,
customSiteConfig : true ,
2022-08-04 13:42:53 +02:00
docs : {
2022-11-11 19:52:14 +05:30
routeBasePath : "/" ,
2022-11-08 10:42:05 +11:00
sidebarPath : require . resolve ( "./sidebars.js" ) ,
2023-05-04 04:23:44 +01:00
editUrl : "https://github.com/waku-org/waku.guide/tree/develop/" ,
2022-08-04 13:42:53 +02:00
} ,
theme : {
2023-03-17 15:12:43 +03:30
name : "docusaurus-default" ,
2023-01-23 15:07:39 +05:30
options : {
customCss : [ require . resolve ( "./src/css/custom.scss" ) ] ,
} ,
2022-12-19 16:56:42 +05:30
} ,
} ) ,
] ,
2022-08-04 13:42:53 +02:00
] ,
2023-03-23 21:28:57 +03:30
staticDirectories : [ "static" ] ,
2023-01-23 15:07:39 +05:30
themeConfig :
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
2023-03-17 15:12:43 +03:30
( {
navbar : {
title : "Waku" ,
2023-03-23 21:28:57 +03:30
logo : {
srcDark : "logo_white.svg" ,
} ,
2023-03-17 15:12:43 +03:30
items : [
{
2023-03-21 22:08:00 +11:00
type : 'docSidebar' ,
position : 'left' ,
sidebarId : 'main' ,
2023-05-10 11:59:53 +01:00
label : 'Getting Started' ,
2023-03-21 22:08:00 +11:00
} ,
{
type : 'docSidebar' ,
position : 'left' ,
sidebarId : 'browser' ,
label : 'JavaScript (Browser)' ,
2023-03-17 15:12:43 +03:30
} ,
] ,
2023-03-22 11:15:36 +05:30
} ,
2023-05-04 13:46:34 +01:00
announcementBar : {
2023-03-22 11:15:36 +05:30
content :
2023-05-10 11:59:53 +01:00
"While Waku still has progress to make, apps like <a href='/overview/who-is-using-waku'>XMTP and Railgun</a> have already implemented it in production. Join our <a href='https://discord.gg/Nrac59MfSX'>Discord Community</a> to stay updated on our progress." ,
2023-03-22 11:15:36 +05:30
backgroundColor : "#EBEDF0" ,
textColor : "#1B1B1D" ,
isCloseable : true ,
2023-03-17 15:12:43 +03:30
} ,
footer : {
links : [
2023-05-04 04:23:44 +01: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 15:12:43 +03:30
{
title : "Community" ,
items : [
{
href : "https://forum.vac.dev/" ,
label : "Discourse" ,
} ,
{
2023-03-21 21:32:23 +11:00
href : "https://discord.gg/Nrac59MfSX" ,
label : "Discord" ,
2023-03-17 15:12:43 +03:30
} ,
{
href : "https://twitter.com/waku_org" ,
label : "Twitter" ,
} ,
2023-03-21 21:32:23 +11:00
{
href : "https://t.me/waku_org" ,
label : "Telegram" ,
} ,
2023-05-04 04:23:44 +01: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 15:12:43 +03:30
} ,
] ,
} ,
2023-05-04 13:46:34 +01:00
colorMode : {
2023-03-22 10:56:57 +05:30
defaultMode : "light" ,
disableSwitch : false ,
respectPrefersColorScheme : false ,
} ,
2023-03-17 15:12:43 +03:30
} ) ,
2023-01-23 15:07:39 +05:30
2023-03-17 15:12:43 +03:30
plugins : [
[
"@easyops-cn/docusaurus-search-local" ,
{
hashed : true ,
indexDocs : true ,
indexPages : true ,
} ,
] ,
] ,
2022-12-19 16:56:42 +05:30
themes : [ "@docusaurus/theme-mermaid" ] ,
markdown : {
mermaid : true ,
} ,
2022-08-04 13:42:53 +02:00
} ;
module . exports = config ;