From b11fb2cc3a82f501217c29886308b98e4eab9117 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Fri, 26 Jul 2024 23:35:28 -0700 Subject: [PATCH] docs: fix safari favicon (#592) --- apps/docs/app/docs/layout.config.tsx | 8 ++++++-- apps/docs/components/shadcn/Shadcn.tsx | 8 ++++++-- apps/docs/public/favicon/favicon.svg | 5 +---- apps/docs/public/favicon/icon.svg | 6 ++++++ 4 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 apps/docs/public/favicon/icon.svg diff --git a/apps/docs/app/docs/layout.config.tsx b/apps/docs/app/docs/layout.config.tsx index eaf340255..a2f302167 100644 --- a/apps/docs/app/docs/layout.config.tsx +++ b/apps/docs/app/docs/layout.config.tsx @@ -3,7 +3,7 @@ import { pageTree } from "@/app/source"; import { RootToggle } from "fumadocs-ui/components/layout/root-toggle"; import { BookIcon, LayoutTemplateIcon, PhoneCallIcon } from "lucide-react"; import { LibraryIcon, type LucideIcon } from "lucide-react"; -import icon from "@/public/favicon/favicon.svg"; +import icon from "@/public/favicon/icon.svg"; import Image from "next/image"; type Mode = { @@ -52,7 +52,11 @@ export const baseOptions: BaseLayoutProps = { nav: { title: ( <> - logo + logo assistant-ui ), diff --git a/apps/docs/components/shadcn/Shadcn.tsx b/apps/docs/components/shadcn/Shadcn.tsx index 885e94a7e..e2608700d 100644 --- a/apps/docs/components/shadcn/Shadcn.tsx +++ b/apps/docs/components/shadcn/Shadcn.tsx @@ -11,7 +11,7 @@ import { type FC } from "react"; import { Button, type ButtonProps } from "@/components/ui/button"; import { cn } from "@/lib/utils"; -import icon from "@/public/favicon/favicon.svg"; +import icon from "@/public/favicon/icon.svg"; import { Sheet, SheetContent, SheetTrigger } from "../ui/sheet"; import { TooltipProvider, @@ -72,7 +72,11 @@ const TopLeft: FC = () => { side="right" >
- logo + logo assistant-ui
diff --git a/apps/docs/public/favicon/favicon.svg b/apps/docs/public/favicon/favicon.svg index e0bb16912..7391671f8 100644 --- a/apps/docs/public/favicon/favicon.svg +++ b/apps/docs/public/favicon/favicon.svg @@ -1,9 +1,6 @@ - + - diff --git a/apps/docs/public/favicon/icon.svg b/apps/docs/public/favicon/icon.svg new file mode 100644 index 000000000..e597051b6 --- /dev/null +++ b/apps/docs/public/favicon/icon.svg @@ -0,0 +1,6 @@ + + + + + +