From 7552e8bc5b948f62b12a6746139fefcd699ebc82 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 16 Dec 2024 20:55:56 -0600 Subject: [PATCH 1/2] Make this site embeddable into another Because of the way fresh works it uses "clean" urls, relative paths don't really work. This gets rid of all "basing" elements and uses absolute urls which are relative to the root of this site. Since we're rebasing on the consuming edge, this is fine. In the future, we'll use directory urls for everything. --- www/components/DocsSidebar.tsx | 4 ++-- www/components/DocsTitle.tsx | 2 +- www/components/Header.tsx | 4 ++-- www/components/NavigationBar.tsx | 4 ++-- www/routes/docs/[...slug].tsx | 3 +-- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/www/components/DocsSidebar.tsx b/www/components/DocsSidebar.tsx index 659b5e0..a02d603 100644 --- a/www/components/DocsSidebar.tsx +++ b/www/components/DocsSidebar.tsx @@ -27,7 +27,7 @@ export function SidebarCategory(props: { return (
  • - {title} + {title} {entries.length > 0 && (
      {entries.map((entry) => ( @@ -49,7 +49,7 @@ export function SidebarEntry(props: { return (
    1. - {title} + {title}
    2. ); } diff --git a/www/components/DocsTitle.tsx b/www/components/DocsTitle.tsx index 111f2c9..80dca4b 100644 --- a/www/components/DocsTitle.tsx +++ b/www/components/DocsTitle.tsx @@ -2,7 +2,7 @@ export default function DocsTitle(props: { title: string }) { return ( <> GraphGen diff --git a/www/components/Header.tsx b/www/components/Header.tsx index 50adac4..a6ce784 100644 --- a/www/components/Header.tsx +++ b/www/components/Header.tsx @@ -25,9 +25,9 @@ export default function Header(props: { title: string; active: string }) { function Logo() { return ( - + GraphGen logo +