diff --git a/frontend/public/hosts/talac/sitemap.xml b/frontend/public/hosts/talac/sitemap.xml index 47937fa..9697332 100644 --- a/frontend/public/hosts/talac/sitemap.xml +++ b/frontend/public/hosts/talac/sitemap.xml @@ -2,6 +2,11 @@ + + https://talac.tala.run/ + monthly + 1.0 + https://talac.tala.run/docs/command-line monthly diff --git a/frontend/public/hosts/tazel/sitemap.xml b/frontend/public/hosts/tazel/sitemap.xml index 6623a07..c2bb90d 100644 --- a/frontend/public/hosts/tazel/sitemap.xml +++ b/frontend/public/hosts/tazel/sitemap.xml @@ -2,6 +2,11 @@ + + https://tazel.tala.run/ + monthly + 1.0 + https://tazel.tala.run/docs/commands monthly diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 0f2ae03..79a418b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,7 +6,8 @@ import { computed } from "vue"; import { RouterLink, RouterView } from "vue-router"; import { localeLabels } from "./locales"; import { locale, supportedLocales, theme } from "./preferences"; -import { forumUrl, site, siteHome, siteUrl, type Site } from "./site"; +import { contentRoutes } from "./content/routes"; +import { forumUrl, site, siteHome, siteTopics, siteUrl, type Site } from "./site"; const labels = { "en-US": { @@ -70,6 +71,14 @@ const siblings = (["language", "talac", "tazel"] as const) href: siteUrl(other, siteHome[other], hostname), })); +// Talac and Tazel list their documentation topics in the header, by the names their sidebars use. +const topicLinks = computed(() => + siteTopics[site].map((path) => { + const route = contentRoutes[site].find((candidate) => candidate.path === path); + return { path, label: route ? route.topic[locale.value].nav : path }; + }), +); + function toggleTheme() { theme.value = theme.value === "dark" ? "light" : "dark"; } @@ -79,17 +88,22 @@ function toggleTheme() {