Allow configuring the tab and page the Docs Embed opens on (RND-12456) (#4669)

This commit is contained in:
Peter White
2026-10-08 11:25:35 +02:00
committed by GitHub
parent 848a39d1c8
commit f35be52c80
7 changed files with 160 additions and 20 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@gitbook/embed": minor
"gitbook": patch
---
Add `defaultTab` and `defaultPage` options to the Docs Embed to choose where it opens. `defaultTab` opens the embed on the assistant, search or docs tab. `defaultPage` sets the page the docs tab opens on in place of the site's home page, and the embed opens on that page unless `defaultTab` says otherwise. Both work with the standalone script's `configure`, `frame.configure` and `<GitBookFrame>` props.