docs: removed the gatsby storefront guide (#3527)
* docs: removed the gatsby storefront guide * docs: fixed query value
This commit is contained in:
@@ -97,15 +97,6 @@ module.exports = {
|
||||
},
|
||||
className: 'homepage-sidebar-item'
|
||||
},
|
||||
{
|
||||
type: 'doc',
|
||||
id: 'starters/gatsby-medusa-starter',
|
||||
label: 'Gatsby Storefront',
|
||||
customProps: {
|
||||
sidebar_icon: 'gatsby'
|
||||
},
|
||||
className: 'homepage-sidebar-item'
|
||||
},
|
||||
{
|
||||
type: 'html',
|
||||
value: 'SDKs',
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import React from "react";
|
||||
import { useQueryStringValue } from "@docusaurus/theme-common/internal"
|
||||
import Admonition from "@theme/Admonition"
|
||||
|
||||
export default function QueryNote ({
|
||||
query: {
|
||||
key,
|
||||
value = ''
|
||||
},
|
||||
//admonition props
|
||||
admonition,
|
||||
children
|
||||
}) {
|
||||
const queryValue = useQueryStringValue(key)
|
||||
|
||||
return (
|
||||
<>
|
||||
{queryValue === value && (
|
||||
<Admonition {...admonition}>
|
||||
{children}
|
||||
</Admonition>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -464,6 +464,10 @@
|
||||
{
|
||||
"source": "/introduction",
|
||||
"destination": "/development/fundamentals/architecture-overview"
|
||||
},
|
||||
{
|
||||
"source": "/starters/gatsby-medusa-starter",
|
||||
"destination": "/starters/nextjs-medusa-starter?ref=gatsby-medusa-starter"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user