diff options
| author | Leitwolf11 | 2026-11-10 01:34:44 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-10 01:34:44 +0300 |
| commit | b3e66bb6e9a1adebc0a438afc33e6baeeabffb8a (patch) | |
| tree | 16ceab1c0ee2073803a00879407dd0d7c4016faf | |
| parent | 08816dcbf48f72bef174c016a6d59aa717cad40a (diff) | |
| download | tazel.net-b3e66bb6e9a1adebc0a438afc33e6baeeabffb8a.tar.gz | |
Keep only the documentation link in the header
Reference and Plugins led to pages of the documentation the Document link
already reaches, and Releases to the GitHub releases, so the header (desktop
and mobile menu) now holds the Document link alone, current on every
/docs page. The unused "releases" label is gone from all four languages.
The footer keeps its links. Tests, nuxt typecheck, Prettier and nuxt
generate pass; the generated header reads Document, Dokument, Документ and
מסמך.
| -rw-r--r-- | app/components/SiteHeader.vue | 14 | ||||
| -rw-r--r-- | app/content/chrome.ts | 4 | ||||
| -rw-r--r-- | app/content/types.ts | 1 | ||||
| l--------- | dist | 1 |
4 files changed, 4 insertions, 16 deletions
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 e68d62a..caf1d9d 100644 --- a/app/content/chrome.ts +++ b/app/content/chrome.ts @@ -10,7 +10,6 @@ export const chrome: Record<Locale, Chrome> = { docs: "Document", reference: "Reference", plugins: "Plugins", - releases: "Releases", getStarted: "Get started", source: "Source", language: "Language", @@ -53,7 +52,6 @@ export const chrome: Record<Locale, Chrome> = { docs: "Dokument", reference: "Referenz", plugins: "Plugins", - releases: "Releases", getStarted: "Loslegen", source: "Quellcode", language: "Sprache", @@ -96,7 +94,6 @@ export const chrome: Record<Locale, Chrome> = { docs: "Документ", reference: "Справочник", plugins: "Плагины", - releases: "Выпуски", getStarted: "Начать", source: "Исходный код", language: "Язык", @@ -139,7 +136,6 @@ export const chrome: Record<Locale, Chrome> = { docs: "מסמך", reference: "עיון", plugins: "תוספים", - releases: "גרסאות", getStarted: "מתחילים", source: "קוד מקור", language: "שפה", diff --git a/app/content/types.ts b/app/content/types.ts index 57e7646..b311861 100644 --- a/app/content/types.ts +++ b/app/content/types.ts @@ -7,7 +7,6 @@ export type Chrome = { docs: string; reference: string; plugins: string; - releases: string; getStarted: string; source: string; language: string; @@ -0,0 +1 @@ +/home/hasan/Progmasoft/tazel.net/.output/public
\ No newline at end of file |