2026-05-11 01:08:31 -07:00
|
|
|
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
|
|
|
|
|
import { Logo } from "@/components/logo";
|
2026-05-19 18:07:29 -04:00
|
|
|
import { SlackIcon } from "@/components/slack-icon";
|
2026-06-12 11:06:04 +02:00
|
|
|
import { GitHubStars, GITHUB_REPO_URL } from "@/components/github-stars";
|
|
|
|
|
import { ThemeToggle } from "@/components/theme-toggle";
|
2026-05-11 01:08:31 -07:00
|
|
|
|
|
|
|
|
export const baseOptions: BaseLayoutProps = {
|
|
|
|
|
nav: {
|
2026-06-06 22:32:08 -04:00
|
|
|
title: Logo,
|
2026-05-11 01:08:31 -07:00
|
|
|
transparentMode: "top",
|
|
|
|
|
},
|
2026-06-12 11:06:04 +02:00
|
|
|
// Custom two-icon switcher (light / dark) where each icon selects its own
|
|
|
|
|
// theme. The default "light-dark" switcher is a single blind toggle — both
|
|
|
|
|
// icons just flip the theme, so clicking the sun while already in light mode
|
|
|
|
|
// jumps to dark, which reads as broken.
|
|
|
|
|
slots: {
|
|
|
|
|
themeSwitch: ThemeToggle,
|
|
|
|
|
},
|
2026-05-19 18:07:29 -04:00
|
|
|
links: [
|
|
|
|
|
{
|
|
|
|
|
type: "icon",
|
2026-05-20 17:33:38 +02:00
|
|
|
label: "Join the ktx Slack community",
|
2026-05-19 18:07:29 -04:00
|
|
|
icon: <SlackIcon />,
|
|
|
|
|
text: "Slack",
|
|
|
|
|
url: "https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ",
|
|
|
|
|
external: true,
|
|
|
|
|
},
|
2026-06-12 11:06:04 +02:00
|
|
|
{
|
|
|
|
|
type: "icon",
|
|
|
|
|
label: "Star ktx on GitHub",
|
|
|
|
|
icon: <GitHubStars />,
|
|
|
|
|
text: "GitHub",
|
|
|
|
|
url: GITHUB_REPO_URL,
|
|
|
|
|
external: true,
|
|
|
|
|
},
|
2026-05-19 18:07:29 -04:00
|
|
|
],
|
2026-05-11 01:08:31 -07:00
|
|
|
};
|