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 743C6924D; Mon, 18 May 2026 21:05:50 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id BC138923B; Mon, 18 May 2026 21:05:47 +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-mta135.mxroute.com (mail-108-mta135.mxroute.com [136.175.108.135]) by atuin.qyliss.net (Postfix) with ESMTPS id 8F7519234 for ; Mon, 18 May 2026 21:05:45 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta135.mxroute.com (ZoneMTA) with ESMTPSA id 19e3ce8b02900067f7.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 18 May 2026 21:05:42 +0000 X-Zone-Loop: 7820cc8635329d6ea8159ffece6619967cc3bfef2f0b 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=AUIatDALi6Ao8gCIEbaXWiA5Qnv0GDToYlJSCytwWrw=; b=hKc6AotcCscYV4wB2noOgUe5fB mGmqOPOnU6LO+tQlnOGYIGbcwUj01mq3QhRsOrMjZ/S/jsyXUBhiHCoWjXfYRI6BEEm9AaSLcMlRP fiFTG6QNrQzj2O6VjnEFM6TNy5swB/wDcl0/lmyYuVFHFyw/omwr3ki7ZSB9jeQtCm7QRDb01fMP4 rNsRh6epPRdcXPfHSFastx1s8MQNxIj+9FvJgNZM3OABJzWb5+1O7MhqgtpNa/ytFw+B3eX2ymyDe ePTqYbWzU2KFsAYKAJSrtMhVR/K+LSDpimxID3Wyp2Sqwm5R2oB3fl9INL3/FQ9PZCbjjVYGb0hnN m56FyrAQ==; From: Valentin Gagarin To: devel@spectrum-os.org Subject: [PATCH v3] Documentation: add logo to site header Date: Mon, 18 May 2026 23:04:54 +0200 Message-ID: <20260518210454.64173-1-valentin@gagarin.work> In-Reply-To: <20260515175649.35166-1-valentin@gagarin.work> References: <20260515175649.35166-1-valentin@gagarin.work> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: valentin@gagarin.work Message-ID-Hash: D5FVQW7OODBW7ERB447JKFQLNQLMBSTB X-Message-ID-Hash: D5FVQW7OODBW7ERB447JKFQLNQLMBSTB 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 | 9 +++++++++ Documentation/_sass/custom/custom.scss | 13 +++++++++++++ 3 files changed, 24 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..76c1b2a --- /dev/null +++ b/Documentation/_includes/title.html @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: MIT +# SPDX-FileCopyrightText: 2016 Patrick Marsceill +# SPDX-FileCopyrightText: 2026 Valentin Gagarin +{% 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