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 79BD98436; Sat, 23 May 2026 13:52:35 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 3C0FD842E; Sat, 23 May 2026 13:52:33 +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.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) by atuin.qyliss.net (Postfix) with ESMTPS id 3FE918354 for ; Sat, 23 May 2026 13:52:32 +0000 (UTC) Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id D05E77A00CE; Sat, 23 May 2026 09:52:30 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Sat, 23 May 2026 09:52:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1779544350; x=1779630750; bh=siKoUVYC8I XJGrdCVFHh0K5CAYZ9bxdmmXH141BOQuo=; b=J8rzg8ohfFXrL32ik5s769Tuko e0turXEpqyXwYHYP5TPDuDaXah6mMPfw4f+a2bOm6iGyyZZ66XfZc4KHp2+IkME1 2FmJxE5RNkqPfsUVQ6CwFtDn/uJdyEgVuT6iEa3z9130KttMduNG53XInUAUAcJl 6LhAmUXe5hHI6+Tavd8Y3rue/pZNlsogGo1voVOWwfWREinNCIfSzX66jHWClrhI +OJSUn1NpDQp2enVJJd5PD545ak4T4G6a+trSrn5aXhlZvtFF8I8iutw+9PH0+EC 9oO8/o1svJJULZB6sOssogKDj5c21MqjhAxBBOpqyDPJRVIYQTtyjeycBqEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1779544350; x=1779630750; bh=siKoUVYC8IXJGrdCVFHh0K5CAYZ9bxdmmXH 141BOQuo=; b=d/DO4lDmokMwWTcOGbg5SS5cqWAzlUuYCgdpvjOytlDIMPVsmUx VmfH5ZlOttntz3Glo7SgxL605eaFZ/cfOB1dviPqkj7QuBHCd3CewOlguHiLaFR3 HKDmCIOY3FZMBhC7N2SOG2oqOyqkUwy2Sn5VaqJWdTxxkvmIicUWR6Wf5RwFaolp VeV9iFWUFsyS0k91jJCsXELnit5gSmRpBnplw2wnbzI0ChglB3oLDpggEnWKXAYA aP9l3eGzxqkFkYfVqNZyndE4rym1VDnwoH7w0AIPFubq6ZYyqeohz8QY2Z7vlhlE d1tCrq6bfYQNNVb7e1VtuJ9+hatpFfijU6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduheefvdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttdejnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeejhfelvd ehhfffleeileehiefhueffieejtdfhteeugeejgefgjeevteffvddtueenucffohhmrghi nhepghhithhhuhgsrdgtohhmpdhsphgvtghtrhhumhdqohhsrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdr ihhspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hvrghlvghnthhinhesghgrghgrrhhinhdrfihorhhkpdhrtghpthhtohepuggvvhgvlhes shhpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 May 2026 09:52:29 -0400 (EDT) Received: by fw12.qyliss.net (Postfix, from userid 1000) id 8F1ACB25C1DB; Sat, 23 May 2026 15:52:28 +0200 (CEST) From: Alyssa Ross To: Valentin Gagarin Subject: Re: [PATCH v4] Documentation: add logo to site header In-Reply-To: <875x4eqza6.fsf@alyssa.is> References: <20260518210454.64173-1-valentin@gagarin.work> <20260520085723.135653-1-valentin@gagarin.work> <875x4eqza6.fsf@alyssa.is> Date: Sat, 23 May 2026 15:52:26 +0200 Message-ID: <8733ziqllx.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: QJ25NCZYXIRJKIUAKGXJ6MUDKF6Y7J6K X-Message-ID-Hash: QJ25NCZYXIRJKIUAKGXJ6MUDKF6Y7J6K X-MailFrom: hi@alyssa.is 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: devel@spectrum-os.org 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: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alyssa Ross writes: > Valentin Gagarin writes: > >> 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/f4= 3d7cfc4b1e18a97e6d6d20b88f1aaeda0e7196/_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/_include= s/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/_sas= s/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) { > > Took me a while to understand what was significant about 50rem here. We > have access to the same SCSS mixins just-the-docs itself uses, so we > could use them rather than hardcoding a magic number that might get out > of sync: > > @include mq(md) { > > I also noticed that if I hover over the .site-title in a viewport wider > than 50rem, its background becomes opaque and reveals that it's > overflowing the sidebar. Ignore this part. After re-applying the patch and restarting Jekyll I can't get it to happen again=E2=80=A6 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQQGoGac7QfI+H5ZtFCZddwkt31pFQUCahGxGgAKCRCZddwkt31p FcIXAP4qH4EjY5R0XaYpyp84xxLLl/MXI2UreI3UFESGTiWrIQD/efwWzM4XQXoT a41hOCGZnIKUjykp9d1SYYvKuxOLJAo= =rEl7 -----END PGP SIGNATURE----- --=-=-=--