diff options
| author | Leitwolf | 2026-11-10 02:11:44 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-10 02:11:44 +0300 |
| commit | 7701cf0a9b34f04403bd1137ec63638b7075597a (patch) | |
| tree | e45bd195f9e2a4bd404c3bc7a048d518ee36b75b | |
| parent | bf60125c3e252ec551f4b608c90225f2aaf966b3 (diff) | |
| parent | 0969bb1861da0c2bd10b2f1864857330488fa34a (diff) | |
| download | tazel.net-7701cf0a9b34f04403bd1137ec63638b7075597a.tar.gz | |
Remove duplicate links from the header and footer
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | app/components/SiteFooter.vue | 29 | ||||
| -rw-r--r-- | app/components/SiteHeader.vue | 14 | ||||
| -rw-r--r-- | app/content/chrome.ts | 32 | ||||
| -rw-r--r-- | app/content/types.ts | 6 |
5 files changed, 12 insertions, 72 deletions
@@ -6,7 +6,8 @@ node_modules/ .output/ .data/ .cache/ -dist/ +# nuxt generate leaves dist as a symbolic link to .output/public. +dist coverage/ *.log .env diff --git a/app/components/SiteFooter.vue b/app/components/SiteFooter.vue index 14a8eab..4db0b2b 100644 --- a/app/components/SiteFooter.vue +++ b/app/components/SiteFooter.vue @@ -3,9 +3,9 @@ <script setup lang="ts"> import { chrome } from "~/content/chrome"; -import { family, firstDocPage, reference, releaseNotes, repository } from "~/content/site"; +import { family } from "~/content/site"; -const { locale, to } = useSiteLocale(); +const { locale } = useSiteLocale(); const words = computed(() => chrome[locale.value]); </script> @@ -16,26 +16,6 @@ const words = computed(() => chrome[locale.value]); <TazelLogo class="logo" /> <p>{{ words.footer.tagline }}</p> </div> - <nav :aria-label="words.footer.product"> - <h2>{{ words.footer.product }}</h2> - <ul> - <li> - <NuxtLink :to="to(firstDocPage)">{{ words.docs }}</NuxtLink> - </li> - <li> - <NuxtLink :to="to('/docs/reference/commands')">{{ words.reference }}</NuxtLink> - </li> - <li> - <NuxtLink :to="to('/docs/extending/plugins')">{{ words.plugins }}</NuxtLink> - </li> - <li> - <a :href="releaseNotes">{{ words.footer.releaseNotes }}</a> - </li> - <li> - <a :href="reference.commands">{{ words.footer.reference }}</a> - </li> - </ul> - </nav> <nav :aria-label="words.footer.family"> <h2>{{ words.footer.family }}</h2> <ul> @@ -48,9 +28,6 @@ const words = computed(() => chrome[locale.value]); <h2>{{ words.footer.company }}</h2> <ul> <li><a :href="family.progmasoft">progmasoft.com</a></li> - <li> - <a :href="repository">{{ words.source }}</a> - </li> </ul> </nav> </div> @@ -70,7 +47,7 @@ const words = computed(() => chrome[locale.value]); .grid { display: grid; - grid-template-columns: 2fr repeat(3, 1fr); + grid-template-columns: 2fr repeat(2, 1fr); gap: 32px; } diff --git a/app/components/SiteHeader.vue b/app/components/SiteHeader.vue index e7f01fe..1704b0a 100644 --- a/app/components/SiteHeader.vue +++ b/app/components/SiteHeader.vue @@ -8,13 +8,9 @@ import { firstDocPage, repository } from "~/content/site"; const { locale, page, to } = useSiteLocale(); const words = computed(() => chrome[locale.value]); -// Each link is current on every page of its part of the documentation. -const links = computed(() => [ - { label: words.value.docs, path: firstDocPage, part: "/docs/getting-started" }, - { label: words.value.reference, path: "/docs/reference/commands", part: "/docs/reference" }, - { label: words.value.plugins, path: "/docs/extending/plugins", part: "/docs/extending" }, -]); -const releases = `${repository}/releases`; +// The one link of the header leads into the documentation and is current on +// every page of it. +const links = computed(() => [{ label: words.value.docs, path: firstDocPage, part: "/docs" }]); // A menu closes when a link in it is followed. const route = useRoute(); @@ -44,7 +40,6 @@ watch( :class="{ active: page.startsWith(link.part) }" >{{ link.label }}</NuxtLink > - <a :href="releases">{{ words.releases }}</a> </nav> <div class="tools"> @@ -88,9 +83,6 @@ watch( <li v-for="link in links" :key="link.path"> <NuxtLink :to="to(link.path)">{{ link.label }}</NuxtLink> </li> - <li> - <a :href="releases">{{ words.releases }}</a> - </li> </ul> </details> </div> diff --git a/app/content/chrome.ts b/app/content/chrome.ts index c3a02e7..4a7c117 100644 --- a/app/content/chrome.ts +++ b/app/content/chrome.ts @@ -7,10 +7,7 @@ import type { Chrome } from "./types"; export const chrome: Record<Locale, Chrome> = { "en-US": { skip: "Skip to content", - docs: "Docs", - reference: "Reference", - plugins: "Plugins", - releases: "Releases", + docs: "Document", getStarted: "Get started", source: "Source", language: "Language", @@ -21,11 +18,8 @@ export const chrome: Record<Locale, Chrome> = { copied: "Copied", footer: { tagline: "The build system and package manager of Tala.", - product: "Tazel", family: "Tala", company: "Progmasoft", - releaseNotes: "Release notes", - reference: "Full reference", license: "Tazel is free software under MPL-2.0 with the Progmasoft Exception 2.0.", }, docsNav: { @@ -50,10 +44,7 @@ export const chrome: Record<Locale, Chrome> = { }, "de-DE": { skip: "Zum Inhalt springen", - docs: "Doku", - reference: "Referenz", - plugins: "Plugins", - releases: "Releases", + docs: "Dokument", getStarted: "Loslegen", source: "Quellcode", language: "Sprache", @@ -64,11 +55,8 @@ export const chrome: Record<Locale, Chrome> = { copied: "Kopiert", footer: { tagline: "Das Build-System und der Paketmanager von Tala.", - product: "Tazel", family: "Tala", company: "Progmasoft", - releaseNotes: "Versionshinweise", - reference: "Vollständige Referenz", license: "Tazel ist freie Software unter MPL-2.0 mit der Progmasoft Exception 2.0.", }, docsNav: { @@ -93,10 +81,7 @@ export const chrome: Record<Locale, Chrome> = { }, "ru-RU": { skip: "Перейти к содержанию", - docs: "Документация", - reference: "Справочник", - plugins: "Плагины", - releases: "Выпуски", + docs: "Документ", getStarted: "Начать", source: "Исходный код", language: "Язык", @@ -107,11 +92,8 @@ export const chrome: Record<Locale, Chrome> = { copied: "Скопировано", footer: { tagline: "Система сборки и менеджер пакетов Tala.", - product: "Tazel", family: "Tala", company: "Progmasoft", - releaseNotes: "Примечания к выпуску", - reference: "Полный справочник", license: "Tazel — свободное ПО под MPL-2.0 с Progmasoft Exception 2.0.", }, docsNav: { @@ -136,10 +118,7 @@ export const chrome: Record<Locale, Chrome> = { }, "he-IL": { skip: "דילוג לתוכן", - docs: "תיעוד", - reference: "עיון", - plugins: "תוספים", - releases: "גרסאות", + docs: "מסמך", getStarted: "מתחילים", source: "קוד מקור", language: "שפה", @@ -150,11 +129,8 @@ export const chrome: Record<Locale, Chrome> = { copied: "הועתק", footer: { tagline: "מערכת הבנייה ומנהל החבילות של Tala.", - product: "Tazel", family: "Tala", company: "Progmasoft", - releaseNotes: "הערות גרסה", - reference: "תיעוד מלא", license: "Tazel היא תוכנה חופשית תחת MPL-2.0 עם Progmasoft Exception 2.0.", }, docsNav: { diff --git a/app/content/types.ts b/app/content/types.ts index 57e7646..b29a745 100644 --- a/app/content/types.ts +++ b/app/content/types.ts @@ -5,9 +5,6 @@ export type Chrome = { skip: string; docs: string; - reference: string; - plugins: string; - releases: string; getStarted: string; source: string; language: string; @@ -18,11 +15,8 @@ export type Chrome = { copied: string; footer: { tagline: string; - product: string; family: string; company: string; - releaseNotes: string; - reference: string; license: string; }; notFound: { title: string; text: string; home: string }; |