From 56afb77b64956830eb2d441d5836744b5b83102f Mon Sep 17 00:00:00 2001 From: Luca Martial Date: Wed, 20 May 2026 00:06:13 +0200 Subject: [PATCH] docs: order navbar icons as GitHub then Slack Moves the GitHub link out of githubUrl and into the explicit links array so the navbar renders GitHub first, then Slack. Fumadocs appends githubUrl after links, which previously put Slack first. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs-site/app/layout.config.tsx | 10 +++++++++- docs-site/components/github-icon.tsx | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 docs-site/components/github-icon.tsx diff --git a/docs-site/app/layout.config.tsx b/docs-site/app/layout.config.tsx index 8c67315c..93b5c45b 100644 --- a/docs-site/app/layout.config.tsx +++ b/docs-site/app/layout.config.tsx @@ -1,4 +1,5 @@ import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared"; +import { GitHubIcon } from "@/components/github-icon"; import { Logo } from "@/components/logo"; import { SlackIcon } from "@/components/slack-icon"; @@ -7,8 +8,15 @@ export const baseOptions: BaseLayoutProps = { title: , transparentMode: "top", }, - githubUrl: "https://github.com/kaelio/ktx", links: [ + { + type: "icon", + label: "GitHub", + icon: , + text: "GitHub", + url: "https://github.com/kaelio/ktx", + external: true, + }, { type: "icon", label: "Join the KTX Slack community", diff --git a/docs-site/components/github-icon.tsx b/docs-site/components/github-icon.tsx new file mode 100644 index 00000000..aa3ec564 --- /dev/null +++ b/docs-site/components/github-icon.tsx @@ -0,0 +1,15 @@ +import type { SVGProps } from "react"; + +export function GitHubIcon(props: SVGProps) { + return ( + + ); +}