docs.waku.org/docusaurus.config.js

156 lines
3.2 KiB
JavaScript
Raw Normal View History

2022-08-04 11:42:53 +00:00
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
feat: use Logos theme & plugin (#33) * Use Logos plugins and theme. * Upgrade dependencies. * feat: improvements on docs (#24) * add: security features * add: protocols overview by example * add: different protocols * add: spell check on CI * rm: yarn.lock to avoid inconsistencies * Update docs/Concepts/1.md Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * Update docs/Concepts/2.md Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * Update docs/Concepts/2.md Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * Update docs/Concepts/7.md Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * Update docs/Concepts/7.md Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * convert mscgen sequence to mermaid * partially adress review comments * address: comments * fix: ci * chore: address minor typos/changes in docs * add: pros/cons for discv5 and peer-exchange * fix: minor typo * chore: address refactoring Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com> * chore: refactor ordering/naming of markdown files (#29) * chore: rename md files and use config ordering it is unfeasible to track the changes in files labelled as '1.md', '2.md', etc and way easier when the files are named after their contents. * fix: hint box render * fix: markdown links * finish merge * push yarn.lock Co-authored-by: Hossein Mehrabi <ohyeaross@gmail.com> Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
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;