diff --git a/www/apps/api-reference/config/index.ts b/www/apps/api-reference/config/index.ts index 917be855b6..a9f53ea7d3 100644 --- a/www/apps/api-reference/config/index.ts +++ b/www/apps/api-reference/config/index.ts @@ -23,4 +23,5 @@ export const config: DocsConfig = { title: "API Reference", key: "api-reference", }, + logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, } diff --git a/www/apps/api-reference/public/images/logo.png b/www/apps/api-reference/public/images/logo.png new file mode 100644 index 0000000000..edc3ec827d Binary files /dev/null and b/www/apps/api-reference/public/images/logo.png differ diff --git a/www/apps/book/config/index.ts b/www/apps/book/config/index.ts index 1807b17682..78ccc4bc3d 100644 --- a/www/apps/book/config/index.ts +++ b/www/apps/book/config/index.ts @@ -17,4 +17,5 @@ export const config: DocsConfig = { breadcrumbOptions: { showCategories: false, }, + logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, } diff --git a/www/apps/book/public/images/logo.png b/www/apps/book/public/images/logo.png new file mode 100644 index 0000000000..edc3ec827d Binary files /dev/null and b/www/apps/book/public/images/logo.png differ diff --git a/www/apps/resources/config/index.ts b/www/apps/resources/config/index.ts index 0b160b1e27..6ae1ffbdcc 100644 --- a/www/apps/resources/config/index.ts +++ b/www/apps/resources/config/index.ts @@ -20,4 +20,5 @@ export const config: DocsConfig = { breadcrumbOptions: { showCategories: true, }, + logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, } diff --git a/www/apps/resources/public/images/logo.png b/www/apps/resources/public/images/logo.png new file mode 100644 index 0000000000..edc3ec827d Binary files /dev/null and b/www/apps/resources/public/images/logo.png differ diff --git a/www/apps/ui/public/images/logo.png b/www/apps/ui/public/images/logo.png new file mode 100644 index 0000000000..edc3ec827d Binary files /dev/null and b/www/apps/ui/public/images/logo.png differ diff --git a/www/apps/ui/src/config/site.ts b/www/apps/ui/src/config/site.ts index 763386324a..da9c1cc4c0 100644 --- a/www/apps/ui/src/config/site.ts +++ b/www/apps/ui/src/config/site.ts @@ -28,4 +28,5 @@ export const siteConfig: SiteConfig = { breadcrumbOptions: { showCategories: true, }, + logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, } diff --git a/www/apps/user-guide/config/index.ts b/www/apps/user-guide/config/index.ts index 7d39f26c91..79a9aa2413 100644 --- a/www/apps/user-guide/config/index.ts +++ b/www/apps/user-guide/config/index.ts @@ -20,4 +20,5 @@ export const config: DocsConfig = { breadcrumbOptions: { showCategories: true, }, + logo: `${process.env.NEXT_PUBLIC_BASE_PATH}/images/logo.png`, } diff --git a/www/apps/user-guide/public/images/logo.png b/www/apps/user-guide/public/images/logo.png new file mode 100644 index 0000000000..edc3ec827d Binary files /dev/null and b/www/apps/user-guide/public/images/logo.png differ diff --git a/www/packages/docs-ui/src/components/BorderedIcon/index.tsx b/www/packages/docs-ui/src/components/BorderedIcon/index.tsx index 3706e90cfd..0d42f9e6bd 100644 --- a/www/packages/docs-ui/src/components/BorderedIcon/index.tsx +++ b/www/packages/docs-ui/src/components/BorderedIcon/index.tsx @@ -10,6 +10,8 @@ export type BorderedIconProps = { iconWrapperClassName?: string iconClassName?: string iconColorClassName?: string + iconWidth?: number + iconHeight?: number } & React.HTMLAttributes export const BorderedIcon = ({ @@ -19,6 +21,8 @@ export const BorderedIcon = ({ iconClassName, iconColorClassName = "", wrapperClassName, + iconWidth = 28, + iconHeight = 28, }: BorderedIconProps) => { return ( )} diff --git a/www/packages/docs-ui/src/components/Icons/MedusaLogo/index.tsx b/www/packages/docs-ui/src/components/Icons/MedusaLogo/index.tsx deleted file mode 100644 index 2e7065d8c2..0000000000 --- a/www/packages/docs-ui/src/components/Icons/MedusaLogo/index.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import { IconProps } from "@medusajs/icons/dist/types" -import React from "react" - -export const MedusaIcon = (props: IconProps) => { - return ( - - - - - - - - - - - - - - - ) -} diff --git a/www/packages/docs-ui/src/components/MainNav/index.tsx b/www/packages/docs-ui/src/components/MainNav/index.tsx index b358de65e6..c69398401b 100644 --- a/www/packages/docs-ui/src/components/MainNav/index.tsx +++ b/www/packages/docs-ui/src/components/MainNav/index.tsx @@ -13,7 +13,6 @@ import { } from "../.." import { MainNavEditDate } from "./EditDate" import { MainNavItems } from "./Items" -import { MedusaIcon } from "../Icons/MedusaLogo" import { MainNavDesktopMenu } from "./DesktopMenu" import { SidebarLeftIcon } from "../Icons/SidebarLeft" import { MainNavMobileMenu } from "./MobileMenu" @@ -52,8 +51,10 @@ export const MainNav = ({ className, itemsClassName }: MainNavProps) => { )} diff --git a/www/packages/docs-ui/src/components/Sidebar/Top/MedusaMenu/index.tsx b/www/packages/docs-ui/src/components/Sidebar/Top/MedusaMenu/index.tsx index f356b0a83e..08de9862af 100644 --- a/www/packages/docs-ui/src/components/Sidebar/Top/MedusaMenu/index.tsx +++ b/www/packages/docs-ui/src/components/Sidebar/Top/MedusaMenu/index.tsx @@ -14,7 +14,6 @@ import { SidebarLeft, TimelineVertical, } from "@medusajs/icons" -import { MedusaIcon } from "../../../Icons/MedusaLogo" import { HouseIcon } from "../../../Icons/House" import { Menu } from "../../../Menu" @@ -51,7 +50,7 @@ export const SidebarTopMedusaMenu = () => { tabIndex={-1} onClick={toggleOpen} > - + Medusa Docs diff --git a/www/packages/docs-ui/src/providers/SiteConifg/index.tsx b/www/packages/docs-ui/src/providers/SiteConifg/index.tsx index 0f3054523d..6ec5aa9777 100644 --- a/www/packages/docs-ui/src/providers/SiteConifg/index.tsx +++ b/www/packages/docs-ui/src/providers/SiteConifg/index.tsx @@ -37,6 +37,7 @@ export const SiteConfigProvider = ({ showCategories: true, }, reportIssueLink: GITHUB_ISSUES_LINK, + logo: "", }, globalConfig, initConfig || {} diff --git a/www/packages/types/src/config.ts b/www/packages/types/src/config.ts index 176f6b9bb8..45ca172955 100644 --- a/www/packages/types/src/config.ts +++ b/www/packages/types/src/config.ts @@ -21,4 +21,5 @@ export declare type DocsConfig = { releaseUrl: string } reportIssueLink?: string + logo: string }