From 49082b8d7693df06f22ba745cca6006f6ece26aa Mon Sep 17 00:00:00 2001 From: Pavel Garaev Date: Fri, 24 Oct 2025 18:26:41 +0400 Subject: [PATCH] Add "Docs" and "Discord" links to header; style adjustments for GitHub and Discord links --- docusaurus.config.ts | 7 +++++++ src/css/custom.css | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 0e8603e..3fc2243 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -97,12 +97,19 @@ const config: Config = { position: "left", }, { + href: "/", + label: "Docs", + position: "left", + }, + { + label: "GitHub", href: "https://github.com/open-webui/open-webui", position: "right", className: "header-github-link", "aria-label": "GitHub repository", }, { + label: "Discord", href: "https://discord.com/invite/5rJgQTnV4s", position: "right", className: "header-discord-link", diff --git a/src/css/custom.css b/src/css/custom.css index 1a9a4a0..5ab4190 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -637,6 +637,18 @@ div.special_table + table tr:nth-child(even) { min-height: 100vh; } +.header-github-link, +.header-discord-link { + gap: 0.25rem; +} + +@media screen and (width >= 997px) { + .header-github-link, + .header-discord-link { + font-size: 0; + } +} + .header-github-link::before { content: ""; width: 24px;