mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
Cleanup & format
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": minor
|
||||
---
|
||||
|
||||
Adds AI sidebar with recommendations based on browsing behaviour
|
||||
@@ -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';
|
||||
|
||||
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user