2021-12-21 03:44:01 -08:00
// @ts-check
2023-01-19 04:41:44 -08:00
require ( "dotenv" ) . config ( ) ;
2024-02-10 09:37:01 -08:00
import remarkDefList from "remark-deflist" ;
2021-12-22 22:22:01 -08:00
2021-12-21 03:44:01 -08:00
/** @type {import('@docusaurus/types').Config} */
const config = {
2024-02-08 13:23:54 -08:00
title : "Meshtastic" ,
tagline :
"An open source, off-grid, decentralized, mesh network built to run on affordable, low-power devices" ,
url : "https://meshtastic.org" ,
baseUrl : "/" ,
trailingSlash : true ,
onBrokenLinks : "throw" ,
onBrokenMarkdownLinks : "warn" ,
favicon : "design/web/favicon.ico" ,
organizationName : "meshtastic" ,
projectName : "meshtastic" ,
themeConfig : /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
docs : {
sidebar : {
autoCollapseCategories : true ,
} ,
} ,
navbar : {
hideOnScroll : true ,
logo : {
alt : "Meshtastic Logo" ,
src : "design/logo/svg/Mesh_Logo_Black.svg" ,
srcDark : "design/logo/svg/Mesh_Logo_White.svg" ,
} ,
items : [
2024-08-13 12:34:27 -07:00
{
label : "Blog" ,
to : "blog" ,
} ,
2024-02-08 13:23:54 -08:00
{
label : "Docs" ,
to : "docs/introduction" ,
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
{
label : "Downloads" ,
to : "downloads" ,
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
{
label : "About" ,
position : "right" ,
items : [
{
label : "Introduction" ,
to : "docs/introduction" ,
} ,
{
label : "Getting Started" ,
to : "docs/getting-started" ,
} ,
{
label : "Contributing" ,
to : "docs/contributing" ,
} ,
{
label : "Legal" ,
to : "docs/legal" ,
} ,
{
label : "FAQs" ,
to : "docs/faq" ,
} ,
] ,
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
{
href : "https://github.com/meshtastic" ,
position : "right" ,
className : "header-github-link" ,
"aria-label" : "GitHub repository" ,
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
] ,
} ,
footer : {
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>. ` ,
} ,
algolia : {
appId : "IG2GQB8L3V" ,
apiKey : "2e4348812173ec7ea6f7879c7032bb21" ,
indexName : "meshtastic" ,
contextualSearch : false ,
searchPagePath : "search" ,
} ,
colorMode : {
respectPrefersColorScheme : true ,
} ,
mermaid : {
theme : { light : "base" , dark : "base" } ,
options : {
themeVariables : {
primaryColor : "#67EA94" ,
primaryTextColor : "var(--tw-prose-headings)" ,
primaryBorderColor : "#4D4D4D" ,
lineColor : "#EAD667" ,
secondaryColor : "#EA67BD" ,
tertiaryColor : "#677CEA" ,
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
} ,
} ,
2024-03-02 11:38:35 -08:00
prism : {
additionalLanguages : [ "shell-session" , "bash" ] ,
} ,
2024-02-08 13:23:54 -08:00
} ,
plugins : [
( ) => {
return {
name : "docusaurus-tailwindcss" ,
configurePostCss ( postcssOptions ) {
postcssOptions . plugins . push ( require ( "tailwindcss" ) ) ;
postcssOptions . plugins . push ( require ( "autoprefixer" ) ) ;
return postcssOptions ;
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
} ;
2024-01-25 16:54:06 -08:00
} ,
2024-02-08 13:23:54 -08:00
] ,
presets : [
[
"@docusaurus/preset-classic" ,
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs : {
sidebarPath : require . resolve ( "./sidebars.js" ) ,
editUrl : "https://github.com/meshtastic/meshtastic/edit/master/" ,
breadcrumbs : false ,
showLastUpdateAuthor : true ,
2024-02-10 09:37:01 -08:00
remarkPlugins : [ remarkDefList ] ,
2024-01-25 16:54:06 -08:00
} ,
2024-08-13 13:14:04 -07:00
blog : {
blogTitle : "Meshtastic Blog" ,
blogDescription :
"Discover in-depth insights from developers and maintainers, including project updates and changes. Hear from the community about their projects and ideas." ,
} ,
2024-02-08 13:23:54 -08:00
theme : {
customCss : require . resolve ( "./src/css/custom.css" ) ,
} ,
} ,
2024-01-25 16:54:06 -08:00
] ,
2024-02-08 13:23:54 -08:00
] ,
customFields : {
API _URL : process . env . API _URL ,
} ,
markdown : {
mermaid : true ,
} ,
themes : [ "@docusaurus/theme-mermaid" ] ,
2021-12-21 03:44:01 -08:00
} ;
module . exports = config ;