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 39A1C9A15; Wed, 20 May 2026 08:57:52 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 84C9D99D6; Wed, 20 May 2026 08:57:50 +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,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,T_PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=4.0.1 Received: from mail-108-mta176.mxroute.com (mail-108-mta176.mxroute.com [136.175.108.176]) by atuin.qyliss.net (Postfix) with ESMTPS id BD30699D4 for ; Wed, 20 May 2026 08:57:48 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta176.mxroute.com (ZoneMTA) with ESMTPSA id 19e449ae07400067f7.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 20 May 2026 08:57:41 +0000 X-Zone-Loop: 486e3bcebb80d88e2511b967996cc79b71867bcb18c5 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=cHtQFafDevFj5dOypWC5PPCTPvX3JBReroEFNUb/67I=; b=jyFyzMRquLLI/BD1cJ48UI7Rde 8bRR9fow2ucI2X62tGgOKDF0Vr4ZsxZ7nkPGQs07zNawhXQO4rN2zmh41dfMIGBRtf9Q2GOS8wank lWk2F4LAsbSeJ6bcNi1i9d9cNz2g1YqMy5mIxG8FgmCS4IkjPbMRhXmPBJrmmgdEGhhVQ77smQceE WtqRsZhmSPXsdnr+k7CfuN9NWDxFW+vzhdaufdXzPsSXn3Rn9oGqYY2SxaCnHLbjK1M18SVhuQWrT hD1vc40kW4RzpypsJCEFOEWA7MofBfjU4hr2YRCPQhlobj1NYnEJPe1Hj7vHwEa1Q+jYMJ+dfo+Pi YCOnkMoQ==; From: Valentin Gagarin To: devel@spectrum-os.org Subject: [PATCH v4] Documentation: add logo to site header Date: Wed, 20 May 2026 10:57:23 +0200 Message-ID: <20260520085723.135653-1-valentin@gagarin.work> In-Reply-To: <20260518210454.64173-1-valentin@gagarin.work> References: <20260518210454.64173-1-valentin@gagarin.work> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: valentin@gagarin.work Message-ID-Hash: HDNHOCG4YL2LRO3OZTLYVIVWETZJVG7S X-Message-ID-Hash: HDNHOCG4YL2LRO3OZTLYVIVWETZJVG7S 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 | 11 +++++++++++ Documentation/_sass/custom/custom.scss | 13 +++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Documentation/_includes/title.html diff --git a/Documentation/_config.yml b/Documentation/_config.yml index 90018ba..dbc4f7a 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 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..0b36987 --- /dev/null +++ b/Documentation/_includes/title.html @@ -0,0 +1,11 @@ +{% comment %} +SPDX-License-Identifier: MIT +SPDX-FileCopyrightText: 2016 Patrick Marsceill +SPDX-FileCopyrightText: 2026 Valentin Gagarin +{% endcomment %} +{% 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