Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeitwolf112026-11-10 01:34:44 +0300
committerLeitwolf112026-11-10 01:34:44 +0300
commitb3e66bb6e9a1adebc0a438afc33e6baeeabffb8a (patch)
tree16ceab1c0ee2073803a00879407dd0d7c4016faf
parent08816dcbf48f72bef174c016a6d59aa717cad40a (diff)
downloadtazel.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.vue14
-rw-r--r--app/content/chrome.ts4
-rw-r--r--app/content/types.ts1
l---------dist1
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;
diff --git a/dist b/dist
new file mode 120000
index 0000000..3c01832
--- /dev/null
+++ b/dist
@@ -0,0 +1 @@
+/home/hasan/Progmasoft/tazel.net/.output/public \ No newline at end of file