From 126ac5f77e74d1c769e198741b9478647dd0bbe7 Mon Sep 17 00:00:00 2001 From: Luca Martial Date: Wed, 20 May 2026 00:01:59 +0200 Subject: [PATCH] docs: add Slack icon link to docs navbar Adds the Slack brand mark as an icon button in the Fumadocs navbar alongside the existing GitHub link, pointing to the KTX Slack community invite. Persistent across every docs page so users can reach the community from anywhere. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs-site/app/layout.config.tsx | 11 +++++++++++ docs-site/components/slack-icon.tsx | 29 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 docs-site/components/slack-icon.tsx diff --git a/docs-site/app/layout.config.tsx b/docs-site/app/layout.config.tsx index ae3bf27b..8c67315c 100644 --- a/docs-site/app/layout.config.tsx +++ b/docs-site/app/layout.config.tsx @@ -1,5 +1,6 @@ import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared"; import { Logo } from "@/components/logo"; +import { SlackIcon } from "@/components/slack-icon"; export const baseOptions: BaseLayoutProps = { nav: { @@ -7,4 +8,14 @@ export const baseOptions: BaseLayoutProps = { transparentMode: "top", }, githubUrl: "https://github.com/kaelio/ktx", + links: [ + { + type: "icon", + label: "Join the KTX Slack community", + icon: , + text: "Slack", + url: "https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ", + external: true, + }, + ], }; diff --git a/docs-site/components/slack-icon.tsx b/docs-site/components/slack-icon.tsx new file mode 100644 index 00000000..2a78f581 --- /dev/null +++ b/docs-site/components/slack-icon.tsx @@ -0,0 +1,29 @@ +import type { SVGProps } from "react"; + +export function SlackIcon(props: SVGProps) { + return ( + + ); +}