From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 4ED3AA4C2; Fri, 15 May 2026 17:57:46 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 6AF23A4BA; Fri, 15 May 2026 17:57:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=0.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,FROM_SUSPICIOUS_NTLD,SPF_HELO_NONE, T_PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=4.0.1 Received: from mail-108-mta148.mxroute.com (mail-108-mta148.mxroute.com [136.175.108.148]) by atuin.qyliss.net (Postfix) with ESMTPS id 5FF87A4B7 for ; Fri, 15 May 2026 17:57:35 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta148.mxroute.com (ZoneMTA) with ESMTPSA id 19e2cc9454f00067f7.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 15 May 2026 17:57:28 +0000 X-Zone-Loop: e5f2ae71c6dad1e9a98b6c97324d7f21507cbfe6018b X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gagarin.work; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9UK5cXbEkdM74UEYDnwF2u5KrLp9pZcWWE91nt9TSP0=; b=LDcZVpC7s89MNJEmaB4/Mw9yh6 HtjaoBKvjZp3YXl+EG6Tp2begInGbvSlG/K4sMIFudzjRqdSbebe8HwKLhlVk+e+ViFX2HYaENcs/ fQLKlda+H/Ii6WWqDHw5GdbTb9oDFgmGEi51On3B3O3jGWCY+cG55DCIAQPrt9ZV4msxfuauaaLoF wVv1JoWf2FuNxKe5WZhosbt6Khiv4NXbChkDKnJGHDnz6N1xUxv4PesBs2584O+W7qzW3iPKzSdcu LW2F0t28p+4gvDEdsz92qLlu925zwzDMyWZR5/KcvGiaW/u7arlvwqMvcbOXxPP98LojFJr9iGVi6 f260+A4Q==; From: Valentin Gagarin To: devel@spectrum-os.org Subject: [PATCH v2] Documentation: add logo to site header Date: Fri, 15 May 2026 19:56:49 +0200 Message-ID: <20260515175649.35166-1-valentin@gagarin.work> In-Reply-To: <20260514192145.15648-1-valentin@gagarin.work> References: <20260514192145.15648-1-valentin@gagarin.work> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: valentin@gagarin.work Message-ID-Hash: UGMZQ7UXWVSVU3KPTLQR5K6GHVXHN5BN X-Message-ID-Hash: UGMZQ7UXWVSVU3KPTLQR5K6GHVXHN5BN X-MailFrom: valentin@gagarin.work X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Valentin Gagarin X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: <> List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Also spell out the title. The stylesheet adjustment makes the logo align properly with the longer title text for different display widths. Override the [title template] to show both the title text and the logo. [title template]: https://github.com/just-the-docs/just-the-docs/blob/f43d7cfc4b1e18a97e6d6d20b88f1aaeda0e7196/_includes/title.html Signed-off-by: Valentin Gagarin --- Documentation/_config.yml | 3 ++- Documentation/_includes/title.html | 6 ++++++ Documentation/_sass/custom/custom.scss | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Documentation/_includes/title.html diff --git a/Documentation/_config.yml b/Documentation/_config.yml index 90018ba..192633b 100644 --- a/Documentation/_config.yml +++ b/Documentation/_config.yml @@ -1,7 +1,8 @@ # SPDX-License-Identifier: CC0-1.0 # SPDX-FileCopyrightText: 2022 Alyssa Ross --- -title: Spectrum Docs +title: Spectrum OS documentation +logo: "https://spectrum-os.org/logo/logo_html.svg" theme: just-the-docs aux_links: Home: diff --git a/Documentation/_includes/title.html b/Documentation/_includes/title.html new file mode 100644 index 0000000..36a4017 --- /dev/null +++ b/Documentation/_includes/title.html @@ -0,0 +1,6 @@ +{% if site.logo %} + +{% endif %} +{% if site.title %} + {{ site.title }} +{% endif %} diff --git a/Documentation/_sass/custom/custom.scss b/Documentation/_sass/custom/custom.scss index fd5a676..75e3f16 100644 --- a/Documentation/_sass/custom/custom.scss +++ b/Documentation/_sass/custom/custom.scss @@ -20,3 +20,16 @@ margin-left: 2ch; } } + +.site-logo { + width: 3rem; +} + +@media (min-width: 50rem) { + .site-logo { + width: 5.5rem; + } + .site-title { + font-size: 1.25rem !important; + } +} -- 2.51.2