Add link to generate links in PDF mode

This commit is contained in:
Samy Pessé
2023-11-03 16:59:37 -04:00
parent 85af5fd4e2
commit 2d4faaf396
11 changed files with 177 additions and 97 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { pageHref } from '@/lib/links';
import { absoluteHref } from '@/lib/links';
import { Space } from '@gitbook/api';
import { tcls } from '@/lib/tailwind';
@@ -47,7 +47,7 @@ export function Header(props: { space: Space; asFullWidth: boolean }) {
asFullWidth ? null : [CONTAINER_MAX_WIDTH_NORMAL, 'mx-auto'],
)}
>
<Link href={pageHref('')} className={tcls('flex-1')}>
<Link href={absoluteHref('')} className={tcls('flex-1')}>
<h1 className={tcls('text-lg', 'text-slate-800', 'font-semibold')}>
{space.title}
</h1>