complete i18n migration to /[locale]/ with EN+ES content

Full rewrite of the docs site under app/[locale]/ with next-intl
in localePrefix:"always" mode. Every page now exists at both
/en/<path> and /es/<path>; the root / shows a meta-refresh + JS
redirect to /<defaultLocale>/ so GitHub Pages serves something
on the apex URL.

Highlights:
- 107 doc pages migrated to file-per-page JSON namespaces under
  messages/en/ and messages/es/. Spanish content is fully
  translated (no copy-of-English placeholders).
- New documentation for the Active Suppressions section in the
  Settings tab and the per-event Dismiss dropdown in the Health
  Monitor modal.
- New screenshots: dismiss-duration-dropdown.png and an updated
  health-suppression-settings.png.
- Pagefind integrated for client-side search; index is built on
  every CI deploy (not committed).
- RSS feeds: per-locale at /<locale>/rss.xml plus root /rss.xml
  for backward compat.
- Removed the dead app/[locale]/guides/[slug]/ route — every
  guide now has its own static page and no markdown source
  remains.
- Fixed orphan link /guides/nvidia -> /guides/nvidia-manual in
  docs/hardware/nvidia-host.
- Removed obsolete components (footer2, calendar, drawer).

Verified locally with `npm ci && npm run build`: 2804 files in
out/, 231 pages indexed by pagefind, root redirect intact, both
locale roots and the new Active Suppressions docs render OK.
This commit is contained in:
MacRimi
2026-05-31 12:41:10 +02:00
parent 875910b4d7
commit 5ca3463bf6
649 changed files with 83958 additions and 11096 deletions

View File

@@ -0,0 +1,100 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.backupCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"vzdump",
"qmrestore",
"pct restore",
"proxmox backup commands",
"proxmox vm backup",
"proxmox lxc backup",
"proxmox scheduled backup",
"vzdump exclude",
"proxmox restore command",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/backup-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/backup-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function BackupRestorePage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.backupCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { backupCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.backupCommands.commandGroups
const relatedItems = messages.docs.helpInfo.backupCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const strong = (chunks: React.ReactNode) => <strong>{chunks}</strong>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={5}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { strong })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("testRestores.title")}>
{t.rich("testRestores.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,100 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.gpuCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox gpu passthrough",
"qm hostpci",
"vfio proxmox",
"iommu proxmox",
"lspci proxmox",
"proxmox nvidia passthrough",
"proxmox amd passthrough",
"proxmox intel iommu",
"intel_iommu proxmox",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/gpu-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/gpu-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function GPUPassthroughPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.gpuCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { gpuCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.gpuCommands.commandGroups
const relatedItems = messages.docs.helpInfo.gpuCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const em = (chunks: React.ReactNode) => <em>{chunks}</em>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={5}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { em, code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("afterChangesTip.title")}>
{t.rich("afterChangesTip.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,100 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.networkCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox network commands",
"ip command proxmox",
"pve-firewall",
"proxmox iptables",
"proxmox bridge",
"ss command",
"ping proxmox",
"proxmox networking cli",
"ethtool proxmox",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/network-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/network-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function NetworkCommandsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.networkCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { networkCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.networkCommands.commandGroups
const relatedItems = messages.docs.helpInfo.networkCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const strong = (chunks: React.ReactNode) => <strong>{chunks}</strong>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={4}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("iptablesTip.title")}>
{t.rich("iptablesTip.bodyRich", { strong, code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,145 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import Image from "next/image"
import {
ArrowRight,
Terminal,
HardDrive,
Network,
Package,
Cpu,
Database,
Archive,
Wrench,
} from "lucide-react"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox commands",
"proxmox cli",
"proxmox cheatsheet",
"qm command",
"pct command",
"pveversion",
"vzdump",
"zpool",
"proxmox reference",
"proxmox commands list",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info",
},
twitter: {
card: "summary_large_image",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type Option = { icon: string; href: string; title: string; description: string }
const ICONS: Record<string, React.ComponentType<{ className?: string; "aria-hidden"?: boolean }>> = {
Terminal,
HardDrive,
Network,
Package,
Cpu,
Database,
Archive,
Wrench,
}
function OptionCard({ option }: { option: Option }) {
const Icon = ICONS[option.icon] || Terminal
return (
<Link
href={option.href}
className="group flex items-start gap-3 rounded-md border border-gray-200 bg-white p-3 transition-colors hover:border-blue-400 hover:bg-blue-50"
>
<span className="inline-flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-md bg-gray-100 text-gray-600 group-hover:bg-blue-100 group-hover:text-blue-700">
<Icon className="h-4 w-4" aria-hidden />
</span>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-1 text-sm font-medium text-gray-900 group-hover:text-blue-700">
{option.title}
<ArrowRight className="h-3.5 w-3.5 text-gray-400 group-hover:text-blue-600 transition-transform group-hover:translate-x-0.5" />
</div>
<div className="mt-0.5 text-xs text-gray-600 leading-snug">{option.description}</div>
</div>
</Link>
)
}
export default async function HelpAndInfoPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { categories: { options: Option[] } } }
}
const options = messages.docs.helpInfo.categories.options
const kbd = (chunks: React.ReactNode) => <kbd>{chunks}</kbd>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={2}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t("intro.body")}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("opening.heading")}</h2>
<p className="mb-4 text-gray-800 leading-relaxed">
{t.rich("opening.body", { kbd })}
</p>
<Image
src="/help/help-info-menu.png"
alt={t("opening.imageAlt")}
width={900}
height={500}
className="rounded shadow-lg my-6"
/>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("categories.heading")}</h2>
<div className="grid gap-3 md:grid-cols-2 mb-8 not-prose">
{options.map((o) => (
<OptionCard key={o.href} option={o} />
))}
</div>
<Callout variant="tip" title={t("tip.title")}>
{t("tip.body")}
</Callout>
</div>
)
}

View File

@@ -0,0 +1,108 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.storageCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox storage commands",
"lsblk proxmox",
"pvesm",
"qm importdisk",
"qemu-img convert",
"proxmox lvm commands",
"proxmox disk commands",
"lvdisplay",
"pvs proxmox",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/storage-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/storage-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function StorageCommandsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.storageCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { storageCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.storageCommands.commandGroups
const relatedItems = messages.docs.helpInfo.storageCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const strong = (chunks: React.ReactNode) => <strong>{chunks}</strong>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={4}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("lvmTip.title")}>
{t.rich("lvmTip.bodyRich", { code })}
</Callout>
<Callout variant="info" title={t("smartInfo.title")}>
{t.rich("smartInfo.bodyRich", { strong, code })}
</Callout>
<Callout variant="warning" title={t("selfTestWarn.title")}>
{t.rich("selfTestWarn.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,94 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.systemCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox commands",
"pveversion",
"proxmox system commands",
"journalctl proxmox",
"systemctl proxmox",
"proxmox linux commands",
"pveperf",
"proxmox cli",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/system-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/system-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function SystemCommandsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.systemCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { systemCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.systemCommands.commandGroups
const relatedItems = messages.docs.helpInfo.systemCommands.related.items
const em = (chunks: React.ReactNode) => <em>{chunks}</em>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={3}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { em })}
</Callout>
<CommandTable groups={commandGroups} />
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,104 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.toolsCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"htop proxmox",
"iftop proxmox",
"rsync proxmox",
"tmux",
"journalctl",
"linux cli tools",
"proxmox cli tools",
"iotop",
"lsof",
"nmap proxmox",
"mtr",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/tools-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/tools-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function SystemCLIToolsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.toolsCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { toolsCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.toolsCommands.commandGroups
const relatedItems = messages.docs.helpInfo.toolsCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const utilsLink = (chunks: React.ReactNode) => (
<Link href="/docs/utils/system-utils" className="text-blue-700 hover:underline">{chunks}</Link>
)
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={5}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { utilsLink })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("tmuxTip.title")}>
{t.rich("tmuxTip.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,102 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.updateCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"proxmox apt update",
"proxmox apt upgrade",
"pveupgrade",
"proxmox dist-upgrade",
"dpkg proxmox",
"proxmox repository",
"proxmox package commands",
"apt pveversion",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/update-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/update-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function UpdateCommandsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.updateCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { updateCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.updateCommands.commandGroups
const relatedItems = messages.docs.helpInfo.updateCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const strong = (chunks: React.ReactNode) => <strong>{chunks}</strong>
const upgradeLink = (chunks: React.ReactNode) => (
<Link href="/docs/utils/upgrade-pve8-pve9" className="text-blue-700 hover:underline">{chunks}</Link>
)
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={3}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="warning" title={t("backupWarn.title")}>
{t.rich("backupWarn.bodyRich", { code, strong, upgradeLink })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,108 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.vmCtCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"qm command proxmox",
"pct command proxmox",
"proxmox vm commands",
"proxmox lxc commands",
"qm start",
"qm stop",
"pct create",
"pct enter",
"proxmox container commands",
"qm clone",
"qm migrate",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/vm-ct-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/vm-ct-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function VMCTCommandsPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.vmCtCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { vmCtCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.vmCtCommands.commandGroups
const relatedItems = messages.docs.helpInfo.vmCtCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
const backupLink = (chunks: React.ReactNode) => (
<Link href="/docs/help-info/backup-commands" className="text-blue-700 hover:underline">{chunks}</Link>
)
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={3}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="warning" title={t("destroyWarn.title")}>
{t.rich("destroyWarn.bodyRich", { code, backupLink })}
</Callout>
<Callout variant="tip" title={t("qmConfigTip.title")}>
{t.rich("qmConfigTip.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}

View File

@@ -0,0 +1,99 @@
import type { Metadata } from "next"
import { getTranslations, getMessages, setRequestLocale } from "next-intl/server"
import { Link } from "@/i18n/navigation"
import { DocHeader } from "@/components/ui/doc-header"
import { Callout } from "@/components/ui/callout"
import { CommandTable, type CommandGroup } from "@/components/ui/command-table"
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>
}): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: "docs.helpInfo.zfsCommands.meta" })
return {
title: t("title"),
description: t("description"),
keywords: [
"zfs proxmox",
"zpool proxmox",
"zfs snapshot",
"zfs send receive",
"zpool scrub",
"zfs replication proxmox",
"zfs commands",
"zpool status",
"proxmox zfs cli",
],
alternates: { canonical: "https://proxmenux.com/docs/help-info/zfs-commands" },
openGraph: {
title: t("ogTitle"),
description: t("ogDescription"),
type: "article",
url: "https://proxmenux.com/docs/help-info/zfs-commands",
},
twitter: {
card: "summary",
title: t("twitterTitle"),
description: t("twitterDescription"),
},
}
}
type RelatedItem = { href: string; label: string; tail?: string }
export default async function ZFSManagementPage({
params,
}: {
params: Promise<{ locale: string }>
}) {
const { locale } = await params
setRequestLocale(locale)
const t = await getTranslations({ locale, namespace: "docs.helpInfo.zfsCommands" })
const messages = (await getMessages({ locale })) as unknown as {
docs: { helpInfo: { zfsCommands: {
commandGroups: CommandGroup[]
related: { items: RelatedItem[] }
} } }
}
const commandGroups = messages.docs.helpInfo.zfsCommands.commandGroups
const relatedItems = messages.docs.helpInfo.zfsCommands.related.items
const code = (chunks: React.ReactNode) => <code>{chunks}</code>
return (
<div>
<DocHeader
title={t("header.title")}
description={t("header.description")}
section={t("header.section")}
estimatedMinutes={5}
scriptPath="help_info_menu.sh"
/>
<Callout variant="info" title={t("intro.title")}>
{t.rich("intro.body", { code })}
</Callout>
<CommandTable groups={commandGroups} />
<Callout variant="tip" title={t("bestPractices.title")}>
{t.rich("bestPractices.bodyRich", { code })}
</Callout>
<h2 className="text-2xl font-semibold mt-10 mb-4 text-gray-900">{t("related.heading")}</h2>
<ul className="list-disc pl-6 text-gray-800 leading-relaxed space-y-1">
{relatedItems.map((item) => (
<li key={item.href}>
<Link href={item.href} className="text-blue-600 hover:underline">
{item.label}
</Link>
{item.tail}
</li>
))}
</ul>
</div>
)
}