fix submodules & api url

This commit is contained in:
Sacha Weatherstone 2021-12-23 01:53:13 +11:00
parent 17befd9a7d
commit b00604e249
10 changed files with 47 additions and 14 deletions

1
.env.example Normal file
View file

@ -0,0 +1 @@
API_URL=

6
.gitmodules vendored
View file

@ -5,3 +5,9 @@
path = protobufs path = protobufs
url = https://github.com/meshtastic/meshtastic-protobufs/ url = https://github.com/meshtastic/meshtastic-protobufs/
s s
[submodule "public/design"]
path = public/design
url = https://github.com/meshtastic/meshtastic-design/
[submodule "static/design"]
path = static/design
url = https://github.com/meshtastic/meshtastic-design/

View file

@ -8,7 +8,7 @@ const config = {
baseUrl: "/", baseUrl: "/",
onBrokenLinks: "throw", onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn", onBrokenMarkdownLinks: "warn",
favicon: "img/meshtastic-design/web/favicon.ico", favicon: "design/web/favicon.ico",
organizationName: "meshtastic", organizationName: "meshtastic",
projectName: "meshtastic", projectName: "meshtastic",
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
@ -28,8 +28,8 @@ const config = {
hideOnScroll: true, hideOnScroll: true,
logo: { logo: {
alt: "Meshtastic Logo", alt: "Meshtastic Logo",
src: "img/meshtastic-design/logo/svg/Mesh_Logo_Black.svg", src: "design/logo/svg/Mesh_Logo_Black.svg",
srcDark: "img/meshtastic-design/logo/svg/Mesh_Logo_White.svg", srcDark: "design/logo/svg/Mesh_Logo_White.svg",
}, },
items: [ items: [
{ {
@ -128,7 +128,7 @@ const config = {
}, },
], ],
], ],
plugins: ["@docusaurus/plugin-ideal-image"], plugins: ["@docusaurus/plugin-ideal-image", "docusaurus2-dotenv"],
}; };
module.exports = config; module.exports = config;

View file

@ -16,6 +16,7 @@
"@docusaurus/plugin-ideal-image": "^2.0.0-beta.14", "@docusaurus/plugin-ideal-image": "^2.0.0-beta.14",
"@docusaurus/preset-classic": "^2.0.0-beta.14", "@docusaurus/preset-classic": "^2.0.0-beta.14",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^1.6.22",
"docusaurus2-dotenv": "^1.4.0",
"esp-web-flasher": "^4.0.0", "esp-web-flasher": "^4.0.0",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",

@ -1 +1 @@
Subproject commit 13fb87d4e037ee8e77945b5b38881dfa4ca8d898 Subproject commit c52c8ef99ead88a5edb73891b33247c54d37cb28

View file

@ -100,9 +100,7 @@ function Home() {
<meta property="og:title" content="Meshtastic" /> <meta property="og:title" content="Meshtastic" />
<meta <meta
property="og:image" property="og:image"
content={useBaseUrl( content={useBaseUrl("design/web/social-preview-1200x630.png")}
"img/meshtastic-design/web/social-preview-1200x630.png"
)}
/> />
<meta <meta
property="og:description" property="og:description"
@ -118,7 +116,7 @@ function Home() {
style={{ paddingTop: "2rem", paddingBottom: "2rem" }} style={{ paddingTop: "2rem", paddingBottom: "2rem" }}
alt="Meshtastic Logo" alt="Meshtastic Logo"
className="header__logo" className="header__logo"
src={useBaseUrl("img/meshtastic-design/typelogo/typelogo.svg")} src={useBaseUrl("design/typelogo/typelogo.svg")}
/> />
</h1> </h1>
<p className="hero__subtitle">{siteConfig.tagline}</p> <p className="hero__subtitle">{siteConfig.tagline}</p>

View file

@ -11,7 +11,7 @@ import { TagSelect } from './TagSelect';
export const Filters = (): JSX.Element => { export const Filters = (): JSX.Element => {
const { data, error } = useSWR<ShowcaseTag[]>( const { data, error } = useSWR<ShowcaseTag[]>(
"http://localhost:4000/showcase/tags", `${process.env.API_URL}/showcase/tags`,
fetcher fetcher
); );
return ( return (

1
static/design Submodule

@ -0,0 +1 @@
Subproject commit b75f60a91abc22367ec017ab0c9eea828784a6ac

View file

@ -8,7 +8,7 @@ const config = {
baseUrl: "/", baseUrl: "/",
onBrokenLinks: "throw", onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn", onBrokenMarkdownLinks: "warn",
favicon: "img/meshtastic-design/web/favicon.ico", favicon: "design/web/favicon.ico",
organizationName: "meshtastic", organizationName: "meshtastic",
projectName: "meshtastic", projectName: "meshtastic",
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
@ -28,8 +28,8 @@ const config = {
hideOnScroll: true, hideOnScroll: true,
logo: { logo: {
alt: "Meshtastic Logo", alt: "Meshtastic Logo",
src: "img/meshtastic-design/logo/svg/Mesh_Logo_Black.svg", src: "design/logo/svg/Mesh_Logo_Black.svg",
srcDark: "img/meshtastic-design/logo/svg/Mesh_Logo_White.svg", srcDark: "design/logo/svg/Mesh_Logo_White.svg",
}, },
items: [ items: [
{ {

View file

@ -4073,6 +4073,13 @@ dns-txt@^2.0.2:
dependencies: dependencies:
buffer-indexof "^1.0.0" buffer-indexof "^1.0.0"
docusaurus2-dotenv@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/docusaurus2-dotenv/-/docusaurus2-dotenv-1.4.0.tgz#9ab900e29de9081f9f1f28f7224ff63760385641"
integrity sha512-iWqem5fnBAyeBBtX75Fxp71uUAnwFaXzOmade8zAhN4vL3RG9m27sLSRwjJGVVgIkEo3esjGyCcTGTiCjfi+sg==
dependencies:
dotenv-webpack "1.7.0"
dom-converter@^0.2.0: dom-converter@^0.2.0:
version "0.2.0" version "0.2.0"
resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768"
@ -4174,6 +4181,25 @@ dot-prop@^5.2.0:
dependencies: dependencies:
is-obj "^2.0.0" is-obj "^2.0.0"
dotenv-defaults@^1.0.2:
version "1.1.1"
resolved "https://registry.yarnpkg.com/dotenv-defaults/-/dotenv-defaults-1.1.1.tgz#032c024f4b5906d9990eb06d722dc74cc60ec1bd"
integrity sha512-6fPRo9o/3MxKvmRZBD3oNFdxODdhJtIy1zcJeUSCs6HCy4tarUpd+G67UTU9tF6OWXeSPqsm4fPAB+2eY9Rt9Q==
dependencies:
dotenv "^6.2.0"
dotenv-webpack@1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/dotenv-webpack/-/dotenv-webpack-1.7.0.tgz#4384d8c57ee6f405c296278c14a9f9167856d3a1"
integrity sha512-wwNtOBW/6gLQSkb8p43y0Wts970A3xtNiG/mpwj9MLUhtPCQG6i+/DSXXoNN7fbPCU/vQ7JjwGmgOeGZSSZnsw==
dependencies:
dotenv-defaults "^1.0.2"
dotenv@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064"
integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w==
duplexer3@^0.1.4: duplexer3@^0.1.4:
version "0.1.4" version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"