Files
SnapOtter/apps/docs/.vitepress/theme/Layout.vue
T
Siddharth Kumar Sah 47e53dc6cd feat: move theme toggle and GitHub button to top-right navbar
Remove socialLinks config and three-dots menu. Add appearance toggle
and combined GitHub + Star button directly in the navbar via layout
slot. The button shows the Octocat icon, "Star" label, and live
stargazer count.
2026-04-03 23:20:23 +08:00

19 lines
455 B
Vue

<script setup>
import DefaultTheme from "vitepress/theme";
import VPSwitchAppearance from "vitepress/dist/client/theme-default/components/VPSwitchAppearance.vue";
import GitHubStars from "./GitHubStars.vue";
const { Layout } = DefaultTheme;
</script>
<template>
<Layout>
<template #nav-bar-content-after>
<div class="nav-bar-right">
<VPSwitchAppearance />
<GitHubStars />
</div>
</template>
</Layout>
</template>