meshtastic/docusaurus.config.js

146 lines
3.7 KiB
JavaScript
Raw Normal View History

2021-12-21 03:44:01 -08:00
// @ts-check
2023-01-19 04:41:44 -08:00
require("dotenv").config();
2021-12-22 22:22:01 -08:00
2021-12-21 03:44:01 -08:00
/** @type {import('@docusaurus/types').Config} */
const config = {
2023-01-19 04:41:44 -08:00
title: "Meshtastic",
2022-10-31 02:17:46 -07:00
tagline:
2023-01-19 04:41:44 -08:00
"An open source, off-grid, decentralized, mesh network built to run on affordable, low-power devices",
url: "https://meshtastic.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "design/web/favicon.ico",
organizationName: "meshtastic",
projectName: "meshtastic",
2021-12-21 03:44:01 -08:00
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
announcementBar: {
2023-01-19 04:41:44 -08:00
id: "2_0",
content:
2023-01-19 04:41:44 -08:00
'🎉 Meshtastic 2.0 Has Now Launched! Check it Out <a href="/2.0">Here</a> 🎉'
},
2022-05-07 06:51:02 -07:00
docs: {
sidebar: {
2023-01-19 04:41:44 -08:00
autoCollapseCategories: true
}
2022-05-07 06:51:02 -07:00
},
2021-12-21 03:44:01 -08:00
navbar: {
2023-01-19 04:41:44 -08:00
title: "Meshtastic",
2021-12-21 03:44:01 -08:00
hideOnScroll: true,
logo: {
2023-01-19 04:41:44 -08:00
alt: "Meshtastic Logo",
src: "design/logo/svg/Mesh_Logo_Black.svg",
srcDark: "design/logo/svg/Mesh_Logo_White.svg"
2021-12-21 03:44:01 -08:00
},
items: [
2022-01-08 17:03:14 -08:00
{
2023-01-19 04:41:44 -08:00
label: "Docs",
to: "docs/introduction"
2022-11-02 11:46:54 -07:00
},
{
2023-01-19 04:41:44 -08:00
label: "Downloads",
to: "downloads"
2022-11-02 11:46:54 -07:00
},
{
2023-01-19 04:41:44 -08:00
label: "About",
position: "right",
2022-01-19 11:32:54 -08:00
items: [
2022-11-02 13:21:48 -07:00
{
2023-01-19 04:41:44 -08:00
label: "Introduction",
to: "docs/introduction"
2022-11-02 13:21:48 -07:00
},
2022-01-19 11:32:54 -08:00
{
2023-01-19 04:41:44 -08:00
label: "Getting Started",
to: "docs/getting-started"
2022-01-19 11:32:54 -08:00
},
{
2023-01-19 04:41:44 -08:00
label: "Contributing",
to: "docs/contributing"
2022-02-23 08:35:28 -08:00
},
2022-11-02 14:50:50 -07:00
{
2023-01-19 04:41:44 -08:00
label: "Legal",
to: "docs/legal"
2022-11-02 14:50:50 -07:00
},
2022-01-19 11:32:54 -08:00
{
2023-01-19 04:41:44 -08:00
label: "FAQs",
to: "docs/faq"
}
]
2022-01-19 11:32:54 -08:00
},
{
2023-01-19 04:41:44 -08:00
href: "https://github.com/meshtastic",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository"
}
]
2021-12-21 03:44:01 -08:00
},
footer: {
2023-01-19 04:41:44 -08:00
copyright: `<a href="https://vercel.com/?utm_source=meshtastic&utm_campaign=oss">Powered by ▲ Vercel</a> | Meshtastic® is a registered trademark of Meshtastic LLC. | <a href="/docs/legal">Legal Information</a>.`
2021-12-21 03:44:01 -08:00
},
algolia: {
2023-01-19 04:41:44 -08:00
appId: "IG2GQB8L3V",
// trunk-ignore(gitleaks/generic-api-key)
apiKey: "2e4348812173ec7ea6f7879c7032bb21",
indexName: "meshtastic",
2021-12-21 03:44:01 -08:00
contextualSearch: false,
2023-01-19 04:41:44 -08:00
searchPagePath: "search"
2021-12-21 03:44:01 -08:00
},
2022-11-02 11:46:54 -07:00
colorMode: {
2023-01-19 04:41:44 -08:00
respectPrefersColorScheme: true
2022-11-02 11:46:54 -07:00
},
2022-12-30 13:01:56 -08:00
mermaid: {
2023-01-19 04:41:44 -08:00
theme: { light: "base", dark: "base" },
2022-12-30 13:01:56 -08:00
options: {
themeVariables: {
2023-01-19 04:41:44 -08:00
primaryColor: "#67EA94",
primaryTextColor: "var(--tw-prose-headings)",
primaryBorderColor: "#4D4D4D",
lineColor: "#EAD667",
secondaryColor: "#EA67BD",
tertiaryColor: "#677CEA"
}
}
2022-12-30 13:01:56 -08:00
}
2021-12-21 03:44:01 -08:00
},
plugins: [
() => {
return {
2023-01-19 04:41:44 -08:00
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
2023-01-19 04:41:44 -08:00
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
2023-01-19 04:41:44 -08:00
}
};
2023-01-19 04:41:44 -08:00
}
],
2021-12-21 03:44:01 -08:00
presets: [
[
2023-01-19 04:41:44 -08:00
"@docusaurus/preset-classic",
2021-12-21 03:44:01 -08:00
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
2023-01-19 04:41:44 -08:00
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/meshtastic/meshtastic/edit/master/",
2022-04-08 07:29:34 -07:00
breadcrumbs: false,
2023-01-19 04:41:44 -08:00
showLastUpdateAuthor: true
2021-12-21 03:44:01 -08:00
},
theme: {
2023-01-19 04:41:44 -08:00
customCss: require.resolve("./src/css/custom.css")
}
}
]
2021-12-21 03:44:01 -08:00
],
2021-12-22 22:22:01 -08:00
customFields: {
2023-01-19 04:41:44 -08:00
API_URL: process.env.API_URL
2021-12-22 22:22:01 -08:00
},
2022-12-29 08:39:20 -08:00
markdown: {
2023-01-19 04:41:44 -08:00
mermaid: true
2022-12-29 08:39:20 -08:00
},
2023-01-19 04:41:44 -08:00
themes: ["@docusaurus/theme-mermaid"]
2021-12-21 03:44:01 -08:00
};
module.exports = config;