docs.waku.org/docusaurus.config.js
Danish Arora 397be651dc
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
2022-12-23 16:59:16 +05:30

105 lines
2.7 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Waku Guides",
tagline: "Waku is the communication layer for Web3.",
url: "https://waku.guide/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "waku-org", // Usually your GitHub org/user name.
projectName: "waku.guide", // Usually your repo name.
// 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: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/waku-org/waku.guide/tree/staging/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig: {
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
title: "Waku",
logo: {
alt: "Waku Logo",
src: "img/logo.svg",
},
items: [
{
type: "doc",
docId: "Concepts/different-protocols",
position: "left",
label: "Concepts",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Discourse",
href: "https://forum.vac.dev/",
},
{
label: "Discord",
href: "https://discord.gg/j5pGbn7MHZ",
},
{
label: "Twitter",
href: "https://twitter.com/waku-org",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Status Gmbh. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
themes: ["@docusaurus/theme-mermaid"],
markdown: {
mermaid: true,
},
};
module.exports = config;