meshtastic/website/docusaurus.config.js

135 lines
3.7 KiB
JavaScript
Raw Normal View History

2021-10-22 19:35:13 -07:00
// @ts-check
/** @type {import('@docusaurus/types').Config} */
const config = {
2021-04-01 17:34:44 -07:00
title: "Meshtastic",
tagline: "Open Source hiking, pilot, skiing and secure GPS mesh communicator",
url: "https://meshtastic.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
2021-12-22 06:53:13 -08:00
favicon: "design/web/favicon.ico",
2021-04-01 17:34:44 -07:00
organizationName: "meshtastic",
projectName: "meshtastic",
2021-10-22 19:35:13 -07:00
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
2021-04-01 17:34:44 -07:00
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
2021-11-09 15:48:00 -08:00
id: "play_store_workaround",
content:
2021-11-09 15:48:00 -08:00
'Android app unavailable in the Google Play Store store. Install by <a href="/docs/software/android/android-installation">side-loading</a> from <a href="https://github.com/meshtastic/Meshtastic-Android/releases">GitHub</a> or <a href="https://www.amazon.com/Geeksville-Industries-Meshtastic/dp/B08CY9394Q">Amazon</a>.',
backgroundColor: "#ff9999",
textColor: "#091E42",
isCloseable: true,
2021-04-01 17:34:44 -07:00
},
navbar: {
title: "Meshtastic",
2021-11-30 02:46:31 -08:00
hideOnScroll: true,
2021-04-01 17:34:44 -07:00
logo: {
alt: "Meshtastic Logo",
2021-12-22 06:53:13 -08:00
src: "design/logo/svg/Mesh_Logo_Black.svg",
srcDark: "design/logo/svg/Mesh_Logo_White.svg",
2021-04-01 17:34:44 -07:00
},
items: [
2021-12-07 03:47:01 -08:00
{
label: "Firmware",
to: "firmware",
activeBasePath: "firmware",
},
2021-04-01 17:34:44 -07:00
{
2021-11-30 02:46:31 -08:00
label: "Showcase",
to: "showcase",
activeBasePath: "showcase",
},
{
2021-11-30 02:46:31 -08:00
label: "Docs",
to: "docs/getting-started",
activeBasePath: "docs/getting-started",
2021-04-01 17:34:44 -07:00
},
{
href: "https://meshtastic.discourse.group",
label: "Forum",
position: "left",
},
{
href: "https://github.com/meshtastic/meshtastic",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
2021-11-30 02:46:31 -08:00
label: "Get Started",
to: "docs/getting-started",
2021-04-01 17:34:44 -07:00
},
{
2021-11-30 02:46:31 -08:00
label: "Showcase",
to: "showcase",
2021-04-01 17:34:44 -07:00
},
],
},
{
title: "Community",
items: [
{
label: "Forum",
href: "https://meshtastic.discourse.group",
2021-04-01 17:34:44 -07:00
},
{
label: "Discord",
href: "https://discord.gg/UQJ5QuM7vq",
2021-04-01 17:34:44 -07:00
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/meshtastic/meshtastic",
},
2021-04-17 06:54:35 -07:00
{
label: "Legal",
to: "docs/legal",
},
2021-04-01 17:34:44 -07:00
],
},
],
2021-11-11 14:27:21 -08:00
copyright: `<a href="https://vercel.com/?utm_source=meshtastic&utm_campaign=oss" style="color: white">Powered by ▲ Vercel</a> | Meshtastic® trademark is a registered trademark belonging to Geeksville Industries LLC`,
2021-04-01 17:34:44 -07:00
},
2021-04-21 00:59:45 -07:00
algolia: {
apiKey: "01ad7e13d3fe392d2ad26da3c69dbc21",
indexName: "meshtastic",
2021-04-21 00:59:45 -07:00
contextualSearch: false,
searchParameters: {},
},
2021-04-01 17:34:44 -07:00
},
2021-11-30 02:46:31 -08:00
2021-04-01 17:34:44 -07:00
presets: [
[
"@docusaurus/preset-classic",
2021-10-22 19:35:13 -07:00
/** @type {import('@docusaurus/preset-classic').Options} */
2021-04-01 17:34:44 -07:00
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
2021-12-21 03:44:01 -08:00
editUrl: "https://github.com/meshtastic/meshtastic/edit/master/",
2021-04-01 17:34:44 -07:00
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
2021-11-30 02:46:31 -08:00
plugins: ["@docusaurus/plugin-ideal-image"],
2021-04-01 17:34:44 -07:00
};
2021-10-22 19:35:13 -07:00
module.exports = config;