Skip to content

Commit b68db8b

Browse files
authored
docs: TopBar override to mention open-in-stackblitz-link slot (#324)
1 parent aa9a5d9 commit b68db8b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/tutorialkit.dev/astro.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export default defineConfig({
1313
'Cross-Origin-Opener-Policy': 'same-origin',
1414
},
1515
},
16+
vite: {
17+
ssr: {
18+
noExternal: '@tutorialkit/react',
19+
},
20+
},
1621
integrations: [
1722
react(),
1823
UnoCSS(),

docs/tutorialkit.dev/src/content/docs/guides/overriding-components.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ tutorialkit({
4444
When overriding `TopBar` you can place TutorialKit's default components using following [Astro slots](https://docs.astro.build/en/basics/astro-components/#named-slots):
4545

4646
- `logo`: Logo of the application
47+
- `open-in-stackblitz-link`: Link for opening current lesson in StackBlitz
4748
- `theme-switch`: Switch for changing the theme
4849
- `login-button`: For StackBlitz Enterprise user, the login button
4950

@@ -59,6 +60,8 @@ When overriding `TopBar` you can place TutorialKit's default components using fo
5960

6061
<LanguageSelect />
6162

63+
<slot name="open-in-stackblitz-link" />
64+
6265
<slot name="login-button" />
6366
</nav>
6467
```

0 commit comments

Comments
 (0)