Skip to content

Commit 70182fa

Browse files
Merge branch 'main' into viktor/fix-horiz-alignment-on-annotated-table-cells
2 parents b4748a8 + dd043df commit 70182fa

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.changeset/sweet-schools-flow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"gitbook-v2": patch
3+
"gitbook": patch
4+
---
5+
6+
Increase logging around caching behaviour causing page crashes.

.changeset/young-games-talk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"gitbook": patch
3+
"gitbook-v2": patch
4+
---
5+
6+
Revert investigation work around URL caches.

packages/gitbook-v2/src/lib/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export function checkIsRootSiteContext(context: GitBookSiteContext): boolean {
407407
function parseSiteSectionsAndGroups(structure: SiteStructure, siteSectionId: string) {
408408
const sectionsAndGroups = getSiteStructureSections(structure, { ignoreGroups: false });
409409
const section = parseCurrentSection(structure, siteSectionId);
410-
assert(section, 'A section must be defined when there are multiple sections');
410+
assert(section, `couldn't find section "${siteSectionId}" in site structure`);
411411
return { list: sectionsAndGroups, current: section } satisfies SiteSections;
412412
}
413413

0 commit comments

Comments
 (0)