Update config and design repo

This commit is contained in:
Sacha Weatherstone 2022-10-31 19:17:46 +10:00
parent b2a2572cb0
commit a3697a52ac
No known key found for this signature in database
GPG key ID: 7AB2D7E206124B31
2 changed files with 3 additions and 43 deletions

View file

@ -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