chore: merge master
This commit is contained in:
commit
2c9df0f7f7
28 files changed
+3866
-2944
No files matched your search
@@ -0,0 +1,3 @@
|
||||
https://www.docs.medusa-commerce.com/* https://www.docs.medusajs.com/:splat 301!
|
||||
https://docs.medusa-commerce.com/* https://docs.medusajs.com/:splat 301!
|
||||
https://tender-goodall-28ca2e.netlify.app/* https://www.docs.medusajs.com/:splat 301!
|
||||
+18
-17
@@ -1,42 +1,43 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const execa = require("execa");
|
||||
const execa = require("execa")
|
||||
|
||||
const installDeps = async () => {
|
||||
await execa("yarn", ["install"], {
|
||||
cwd: "./reference",
|
||||
stdio: "inherit",
|
||||
});
|
||||
})
|
||||
|
||||
await execa("yarn", ["install"], {
|
||||
cwd: "./docs",
|
||||
stdio: "inherit",
|
||||
});
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
const buildGatsby = async () => {
|
||||
await execa("./node_modules/.bin/gatsby", ["build"], {
|
||||
cwd: "./reference",
|
||||
stdio: "inherit",
|
||||
});
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
const buildDocusaurus = async () => {
|
||||
await execa("./node_modules/.bin/docusaurus", ["build"], {
|
||||
cwd: "./docs",
|
||||
stdio: "inherit",
|
||||
});
|
||||
};
|
||||
})
|
||||
}
|
||||
|
||||
const buildSite = async () => {
|
||||
await installDeps();
|
||||
await buildGatsby();
|
||||
await buildDocusaurus();
|
||||
await installDeps()
|
||||
await buildGatsby()
|
||||
await buildDocusaurus()
|
||||
|
||||
await execa("rm", ["-rf", "build"]);
|
||||
await execa("mkdir", ["build"]);
|
||||
await execa("cp", ["-a", `reference/public/.`, `build/`]);
|
||||
await execa("cp", ["-a", `docs/build/.`, `build/`]);
|
||||
};
|
||||
await execa("rm", ["-rf", "build"])
|
||||
await execa("mkdir", ["build"])
|
||||
await execa("cp", ["_redirects", "build/_redirects"])
|
||||
await execa("cp", ["-a", `reference/public/.`, `build/`])
|
||||
await execa("cp", ["-a", `docs/build/.`, `build/`])
|
||||
}
|
||||
|
||||
buildSite();
|
||||
buildSite()
|
||||
+121
-2
@@ -23,7 +23,24 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Tutorials",
|
||||
collapsed: false,
|
||||
label: "Storefront starters",
|
||||
items: [
|
||||
{
|
||||
type: "doc",
|
||||
id: "starters/gatsby-medusa-starter",
|
||||
label: "Quickstart: Gatsby",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "starters/nextjs-medusa-starter",
|
||||
label: "Quickstart: Next.js",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Tutorial",
|
||||
collapsed: false,
|
||||
items: [
|
||||
{
|
||||
@@ -104,27 +121,129 @@ module.exports = {
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Deploy",
|
||||
label: "Add a plugin",
|
||||
items: [
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/contentful",
|
||||
label: "CMS: Contentful",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/strapi",
|
||||
label: "CMS: Strapi",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/segment",
|
||||
label: "Analytics: Segment",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/meilisearch",
|
||||
label: "Search: MeiliSearch",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/algolia",
|
||||
label: "Search: Algolia",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/spaces",
|
||||
label: "File: Spaces",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/s3",
|
||||
label: "File: S3",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/stripe",
|
||||
label: "Payment: Stripe",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/klarna",
|
||||
label: "Payment: Klarna",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/paypal",
|
||||
label: "Payment: PayPal",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/sendgrid",
|
||||
label: "Notification: SendGrid",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "add-plugins/slack",
|
||||
label: "Bot: Slack",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Deployment",
|
||||
items: [
|
||||
{
|
||||
type: "doc",
|
||||
id: "how-to/deploying-on-heroku",
|
||||
label: "Deploy: Heroku",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "how-to/deploying-on-qovery",
|
||||
label: "Deploy: Qovery",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "how-to/deploying-on-digital-ocean",
|
||||
label: "Deploy: DigitalOcean",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "how-to/deploying-admin-on-netlify",
|
||||
label: "Deploy: Admin on Netlify",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "how-to/deploying-gatsby-on-netlify",
|
||||
label: "Deploy: Gatsby on Netlify",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Troubleshooting",
|
||||
items: [
|
||||
{
|
||||
type: "doc",
|
||||
id: "troubleshooting/cors-issues",
|
||||
label: "CORS issues",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "troubleshooting/transaction-error-in-checkout",
|
||||
label: "Error 409 in checkout",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "troubleshooting/missing-payment-providers",
|
||||
label: "Payment provider (Stripe) not showing in checkout",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "troubleshooting/redis-events",
|
||||
label: "Redis not emitting events",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "troubleshooting/signing-in-to-admin",
|
||||
label: "Signing in to Medusa Admin",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { Flex, Box, Link, Select } from "@theme-ui/components"
|
||||
import React, { useContext } from "react"
|
||||
import { Box, Flex, Link, Select } from "@theme-ui/components"
|
||||
import { navigate } from "gatsby-link"
|
||||
|
||||
import React, { useContext } from "react"
|
||||
import GitHub from "../components/icons/github"
|
||||
import NavigationContext from "../context/navigation-context"
|
||||
import { convertToKebabCase } from "../utils/convert-to-kebab-case"
|
||||
import ChevronDown from "./icons/chevron-down"
|
||||
import Search from "./search"
|
||||
|
||||
|
||||
const Topbar = ({ data, api }) => {
|
||||
const { goTo, reset, currentSection } = useContext(NavigationContext)
|
||||
|
||||
|
||||
+2537
-2921
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user