From f58c6ac51f31a1e56b17a30c98a38dbe0efc5a65 Mon Sep 17 00:00:00 2001 From: hlaelissalt Date: Thu, 12 Nov 2026 00:21:01 +0100 Subject: [PATCH] fix: no edit link, npm packages, no icon credits, and the web and GitHub as icons The pages no longer offer to edit them, the packages are called npm packages, the foot does not credit the icon set and has no row of buttons (the web and GitHub are icons in the header, and in the foot on a small screen), and the home no longer sends to the resources. --- astro.config.ts | 2 +- src/components/Footer.astro | 20 ++------------------ src/components/ProjectFoot.astro | 10 ++++------ src/components/SiteHeader.astro | 3 +++ src/i18n/en.json | 5 ++--- src/i18n/es.json | 5 ++--- src/pages/[lang]/index.astro | 13 ------------- src/styles/didactika.css | 4 ++++ 8 files changed, 18 insertions(+), 44 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index bf0daa5..973feb9 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -35,7 +35,7 @@ const titleCase = (name: string): string => name.replace(/-/g, ' ').replace(/^./ const kinds = [ {kind: 'plugin', label: 'Plugins', es: 'Plugins', dir: 'plugins'}, - {kind: 'package', label: 'Packages', es: 'Paquetes', dir: 'packages'}, + {kind: 'package', label: 'npm packages', es: 'Paquetes npm', dir: 'packages'}, ] as const; /** diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 1c88e05..362a899 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,22 +1,6 @@ --- /** - * The foot of a page of the documentation: the link to edit the page, and the foot of the site (see ProjectFoot.astro). There is no - * "previous / next" here: the way through the documentation is the guide of each product, not the order of its files. + * The foot of a page of the documentation. It draws nothing: the site foot is added after the content (see PageFrame.astro), and the + * pages have no "edit this page" link, no "last updated" and no previous/next, which Starlight would otherwise draw here. */ -import MIcon from './MIcon.astro'; -import {t} from '../lib/site'; - -const route = Astro.locals.starlightRoute; -const lang = route.lang; -const editUrl = route.editUrl; --- - -{ - editUrl && ( -
- - {t(lang, 'editPage')} - -
- ) -} diff --git a/src/components/ProjectFoot.astro b/src/components/ProjectFoot.astro index 95a4f95..7695da2 100644 --- a/src/components/ProjectFoot.astro +++ b/src/components/ProjectFoot.astro @@ -55,14 +55,12 @@ const avatar = (url: string): string => `${url}${url.includes('?') ? '&' : '?'}s - + - -
-
-
- -
-

{t(lang, 'moreTitle')}

-

{t(lang, 'moreText')}

-
- {t(lang, 'moreCta')} -
-
-
diff --git a/src/styles/didactika.css b/src/styles/didactika.css index ccde43b..626f875 100644 --- a/src/styles/didactika.css +++ b/src/styles/didactika.css @@ -584,3 +584,7 @@ a.d-feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--li /* The header already has the colour and the language, so the menu of a small screen does not repeat them. */ .mobile-preferences { display: none; } .d-pill { text-decoration: none; color: var(--ink); } + +/* The web and GitHub are icons: in the header on a wide screen, and in the foot where the header has no room for them. */ +.d-foot-icons { display: none; gap: 0.4rem; } +@media (max-width: 62rem) { .d-foot-icons { display: inline-flex; } }