mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-03-05 21:00:08 -08:00
Update config and design repo
This commit is contained in:
parent
b2a2572cb0
commit
a3697a52ac
|
@ -5,7 +5,8 @@ require('dotenv').config();
|
||||||
/** @type {import('@docusaurus/types').Config} */
|
/** @type {import('@docusaurus/types').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
title: 'Meshtastic',
|
title: 'Meshtastic',
|
||||||
tagline: 'An open source, off-grid, decentralized, mesh network built to run on affordable, low-power devices',
|
tagline:
|
||||||
|
'An open source, off-grid, decentralized, mesh network built to run on affordable, low-power devices',
|
||||||
url: 'https://meshtastic.org',
|
url: 'https://meshtastic.org',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
|
@ -13,45 +14,6 @@ const config = {
|
||||||
favicon: 'design/web/favicon.ico',
|
favicon: 'design/web/favicon.ico',
|
||||||
organizationName: 'meshtastic',
|
organizationName: 'meshtastic',
|
||||||
projectName: 'meshtastic',
|
projectName: 'meshtastic',
|
||||||
ssrTemplate: `<!DOCTYPE html>
|
|
||||||
<html <%~ it.htmlAttributes %>>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="generator" content="Docusaurus v<%= it.version %>">
|
|
||||||
<% if (it.noIndex) { %>
|
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
|
||||||
<% } %>
|
|
||||||
<script type="application/ld+json">
|
|
||||||
{
|
|
||||||
"@context": "https://schema.org",
|
|
||||||
"@type": "Organization",
|
|
||||||
"url": "https://meshtastic.org",
|
|
||||||
"logo": "https://meshtastic.org/design/logo/logo.svg"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<%~ it.headTags %>
|
|
||||||
<% it.metaAttributes.forEach((metaAttribute) => { %>
|
|
||||||
<%~ metaAttribute %>
|
|
||||||
<% }); %>
|
|
||||||
<% it.stylesheets.forEach((stylesheet) => { %>
|
|
||||||
<link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
|
|
||||||
<% }); %>
|
|
||||||
<% it.scripts.forEach((script) => { %>
|
|
||||||
<link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
|
|
||||||
<% }); %>
|
|
||||||
</head>
|
|
||||||
<body <%~ it.bodyAttributes %>>
|
|
||||||
<%~ it.preBodyTags %>
|
|
||||||
<div id="__docusaurus">
|
|
||||||
<%~ it.appHtml %>
|
|
||||||
</div>
|
|
||||||
<% it.scripts.forEach((script) => { %>
|
|
||||||
<script src="<%= it.baseUrl %><%= script %>"></script>
|
|
||||||
<% }); %>
|
|
||||||
<%~ it.postBodyTags %>
|
|
||||||
</body>
|
|
||||||
</html>`,
|
|
||||||
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
|
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
|
||||||
colorMode: {
|
colorMode: {
|
||||||
respectPrefersColorScheme: true,
|
respectPrefersColorScheme: true,
|
||||||
|
@ -69,7 +31,6 @@ const config = {
|
||||||
src: 'design/logo/svg/Mesh_Logo_Black.svg',
|
src: 'design/logo/svg/Mesh_Logo_Black.svg',
|
||||||
srcDark: 'design/logo/svg/Mesh_Logo_White.svg',
|
srcDark: 'design/logo/svg/Mesh_Logo_White.svg',
|
||||||
},
|
},
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: 'Docs',
|
label: 'Docs',
|
||||||
|
@ -118,7 +79,6 @@ const config = {
|
||||||
return {
|
return {
|
||||||
name: 'docusaurus-tailwindcss',
|
name: 'docusaurus-tailwindcss',
|
||||||
configurePostCss(postcssOptions) {
|
configurePostCss(postcssOptions) {
|
||||||
// Appends TailwindCSS and AutoPrefixer.
|
|
||||||
postcssOptions.plugins.push(require('tailwindcss'));
|
postcssOptions.plugins.push(require('tailwindcss'));
|
||||||
postcssOptions.plugins.push(require('autoprefixer'));
|
postcssOptions.plugins.push(require('autoprefixer'));
|
||||||
return postcssOptions;
|
return postcssOptions;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2c19d98137a5461811bcddc83765a4e3699b9452
|
Subproject commit a5c2cbe93724ae32e101cae1edf9ae9dffbfe2ac
|
Loading…
Reference in a new issue