Skip to content

Commit be4ad7b

Browse files
committed
Cleanup & format
1 parent 955fea0 commit be4ad7b

File tree

7 files changed

+14
-10
lines changed

7 files changed

+14
-10
lines changed

.changeset/late-cherries-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": minor
3+
---
4+
5+
Adds AI sidebar with recommendations based on browsing behaviour

packages/gitbook-v2/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"generate": "rm -rf ./public && cp -r ../gitbook/public ./public",
26-
"dev:v2": "env-cmd --silent -f ../../.env.local next",
26+
"dev:v2": "env-cmd --silent -f ../../.env.local next --turbopack",
2727
"build": "next build",
2828
"build:v2": "next build",
2929
"start": "next start",
@@ -32,4 +32,4 @@
3232
"unit": "bun test",
3333
"typecheck": "tsc --noEmit"
3434
}
35-
}
35+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from './AIPageLinkSummary';
22
export * from './AdaptiveContext';
3-
export * from './AdaptivePane';
3+
export * from './AdaptivePane';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from './streamLinkPageSummary';
2-
export * from './streamPageJourneySuggestions';
2+
export * from './streamPageJourneySuggestions';

packages/gitbook/src/components/Adaptive/server-actions/streamPageJourneySuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Feel free to create journeys across spaces.`,
163163
});
164164

165165
// Deduplicate pages before yielding
166-
const uniquePages = resolvedPages.filter(page => {
166+
const uniquePages = resolvedPages.filter((page) => {
167167
if (allEmittedPageIds.has(page.page.id)) {
168168
return false;
169169
}

packages/gitbook/src/components/PageAside/PageAside.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function PageAside(props: {
2626
withFullPageCover: boolean;
2727
withPageFeedback: boolean;
2828
}) {
29-
const { page, document, withPageFeedback, withFullPageCover, withHeaderOffset, context } =
30-
props;
29+
const { page, document, withPageFeedback, context } = props;
3130
const { customization, site, space } = context;
3231

3332
const useAdaptivePane = true;

packages/gitbook/src/components/PageAside/PageOutline.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export async function PageOutline(props: {
1515
const { customization } = context;
1616
const language = getSpaceLanguage(customization);
1717

18-
if(!document) return;
19-
18+
if (!document) return;
19+
2020
const sections = await getDocumentSections(context, document);
2121

2222
return document && sections.length > 1 ? (
@@ -42,4 +42,4 @@ export async function PageOutline(props: {
4242
</div>
4343
</div>
4444
) : null;
45-
}
45+
}

0 commit comments

Comments
 (0)