waku.org/docusaurus.config.js

161 lines
3.6 KiB
JavaScript
Raw Normal View History

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require('dotenv').config()
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Waku',
url: 'https://url',
baseUrl: '/',
markdown: {
mermaid: true,
},
// 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',
theme: {
name: 'default',
options: {
customCss: [require.resolve('./src/css/custom.scss')],
2023-06-01 23:11:43 +00:00
docs: {
default: {
sidebar: {
hide: true,
},
},
},
2023-11-17 09:26:22 +00:00
newsletterSubscription: {
mailingListId: 5,
pagePath: '/subscribe',
},
},
},
docs: {
2023-06-01 23:11:43 +00:00
routeBasePath: '/',
path: 'root-pages',
},
2023-11-17 12:03:04 +00:00
generated: {
jobList: {
jobBoard: 'waku',
},
},
2023-07-17 19:16:43 +00:00
og: {},
}),
],
],
2023-06-01 23:11:43 +00:00
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'about',
routeBasePath: '/about',
path: 'about',
},
],
],
themeConfig:
/** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */
({
2023-11-28 13:24:24 +00:00
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
2023-06-01 23:11:43 +00:00
hideOnScroll: true,
items: [
{
type: 'search',
},
{
2023-09-20 18:10:58 +00:00
label: 'About Waku',
to: '/about',
},
2023-06-02 09:36:45 +00:00
{
2023-09-20 18:10:58 +00:00
label: 'Community',
to: '/community',
2023-06-02 09:36:45 +00:00
},
2023-12-05 12:10:50 +00:00
{
label: 'Blog',
href: 'https://blog.waku.org/',
},
{
2023-09-20 18:10:58 +00:00
label: 'Docs',
href: 'https://docs.waku.org',
},
2023-11-17 12:03:04 +00:00
{
label: 'Join Us',
href: '/join-us',
},
2023-07-18 12:08:46 +00:00
{
2023-11-03 14:37:23 +00:00
href: 'https://github.com/waku-org',
2023-09-20 18:10:58 +00:00
position: 'right',
className: 'header-github-link',
title: 'Waku GitHub repository',
2023-07-18 12:08:46 +00:00
},
],
},
footer: {
copyright: 'Waku @2023<br/>All Rights Reserved.',
links: [
{
items: [
{
href: 'https://twitter.com/waku_org',
label: 'Twitter',
},
{
2023-07-18 12:08:46 +00:00
href: 'https://discord.waku.org/',
label: 'Discord',
},
{
2023-06-02 15:36:12 +00:00
href: 'https://docs.waku.org',
label: 'Docs',
},
{
2023-06-02 15:36:12 +00:00
href: 'https://github.com/waku-org',
label: 'Github',
},
2023-12-18 03:03:25 +00:00
{
href: 'https://guide.waku.org/',
label: 'Brand Guidelines',
},
],
},
{
items: [
2023-12-05 12:10:50 +00:00
{
href: 'https://blog.waku.org/',
label: 'Blog',
},
{
href: 'https://jobs.status.im/',
label: 'Work with us',
},
{
2023-06-01 23:11:43 +00:00
href: '/terms',
2023-06-02 09:36:45 +00:00
label: 'Terms & conditions',
},
],
},
],
},
}),
}
module.exports = config