docs: Caching Module (#13701)
* standard docs for caching module + deprecated cache module * added guides for creating + using, and overall changes from cache to caching * fix details related to redis provider * fix build errors * fix build error * fixes * add guides to sidebar * add sidebar util * document query + index * moved cache tag conventions * fix build errors * added migration guide * added memcached guide * fixes * general fixes and updates * updated reference * document medusa cache * small fix * fixes * remove cloud cache * revert edit dates changes * revert edit dates * small update
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
FeatureFlagNotice,
|
||||
InlineCode,
|
||||
MarkdownContent,
|
||||
MDXComponents,
|
||||
} from "@/components"
|
||||
import clsx from "clsx"
|
||||
import { Type, CommonProps as ParentCommonProps } from ".."
|
||||
@@ -136,9 +137,36 @@ const TypeListItem = ({
|
||||
<>
|
||||
{item.description && (
|
||||
<MarkdownContent
|
||||
allowedElements={["a", "strong", "code", "ul", "ol", "li"]}
|
||||
allowedElements={[
|
||||
"a",
|
||||
"strong",
|
||||
"code",
|
||||
"ul",
|
||||
"ol",
|
||||
"li",
|
||||
"br",
|
||||
]}
|
||||
unwrapDisallowed={true}
|
||||
className="text-medium"
|
||||
components={{
|
||||
...MDXComponents,
|
||||
ol: (props: React.HTMLAttributes<HTMLElement>) => (
|
||||
// @ts-expect-error Not recognized as a JSX element
|
||||
<MDXComponents.ol
|
||||
{...props}
|
||||
className={clsx(props.className, "mt-docs_1.5")}
|
||||
/>
|
||||
),
|
||||
li: (props: React.HTMLAttributes<HTMLElement>) => (
|
||||
// @ts-expect-error Not recognized as a JSX element
|
||||
<MDXComponents.li
|
||||
{...props}
|
||||
className={clsx(
|
||||
props.className,
|
||||
"!text-medusa-fg-subtle"
|
||||
)}
|
||||
/>
|
||||
),
|
||||
}}
|
||||
>
|
||||
{item.description}
|
||||
</MarkdownContent>
|
||||
|
||||
Reference in New Issue
Block a user