Skip to content

Commit

Permalink
docs: TopBar override to mention open-in-stackblitz-link slot (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Sep 11, 2024
1 parent aa9a5d9 commit b68db8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/tutorialkit.dev/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export default defineConfig({
'Cross-Origin-Opener-Policy': 'same-origin',
},
},
vite: {
ssr: {
noExternal: '@tutorialkit/react',
},
},
integrations: [
react(),
UnoCSS(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ tutorialkit({
When overriding `TopBar` you can place TutorialKit's default components using following [Astro slots](https://docs.astro.build/en/basics/astro-components/#named-slots):

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

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

<LanguageSelect />

<slot name="open-in-stackblitz-link" />

<slot name="login-button" />
</nav>
```

0 comments on commit b68db8b

Please sign in to comment.