Cleanup & format

This commit is contained in:
Zeno Kapitein
2025-04-09 16:25:52 +02:00
parent 83e02b621a
commit 3cdba0ae8e
7 changed files with 14 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": minor
---
Adds AI sidebar with recommendations based on browsing behaviour
+2 -2
View File
@@ -24,7 +24,7 @@
},
"scripts": {
"generate": "rm -rf ./public && cp -r ../gitbook/public ./public",
"dev:v2": "env-cmd --silent -f ../../.env.local next",
"dev:v2": "env-cmd --silent -f ../../.env.local next --turbopack",
"build": "next build",
"build:v2": "next build",
"start": "next start",
@@ -33,4 +33,4 @@
"unit": "bun test",
"typecheck": "tsc --noEmit"
}
}
}
@@ -1,3 +1,3 @@
export * from './AIPageLinkSummary';
export * from './AdaptiveContext';
export * from './AdaptivePane';
export * from './AdaptivePane';
@@ -1,2 +1,2 @@
export * from './streamLinkPageSummary';
export * from './streamPageJourneySuggestions';
export * from './streamPageJourneySuggestions';
@@ -163,7 +163,7 @@ Feel free to create journeys across spaces.`,
});
// Deduplicate pages before yielding
const uniquePages = resolvedPages.filter(page => {
const uniquePages = resolvedPages.filter((page) => {
if (allEmittedPageIds.has(page.page.id)) {
return false;
}
@@ -26,8 +26,7 @@ export function PageAside(props: {
withFullPageCover: boolean;
withPageFeedback: boolean;
}) {
const { page, document, withPageFeedback, withFullPageCover, withHeaderOffset, context } =
props;
const { page, document, withPageFeedback, context } = props;
const { customization, site, space } = context;
const useAdaptivePane = true;
@@ -15,8 +15,8 @@ export async function PageOutline(props: {
const { customization } = context;
const language = getSpaceLanguage(customization);
if(!document) return;
if (!document) return;
const sections = await getDocumentSections(context, document);
return document && sections.length > 1 ? (
@@ -42,4 +42,4 @@ export async function PageOutline(props: {
</div>
</div>
) : null;
}
}