Files
MacRimi aaffe4e08a docs(oci): align the catalog guide with the project flow
Suggest the app in discussion #440 first, call the file an oci-compose,
use the names the interface shows, run the engine tests as an
unprivileged user, and add the page to the docs sidebar.
2026-10-30 17:52:32 +01:00

32 lines
1.3 KiB
TypeScript

import type { Metadata } from "next"
import { getTranslations, setRequestLocale } from "next-intl/server"
import { DocPage } from "@/components/docs/DocBlocks"
const NAMESPACE = "docs.ociManager.contributeApp"
const URL = "https://proxmenux.com/docs/oci-manager/contribute-app"
const LINKS = {
proposals: "https://github.com/MacRimi/ProxMenux/discussions/440",
readme: "https://github.com/MacRimi/ProxMenux/blob/develop/oci/README.md#writing-and-testing-an-oci-compose",
roadmap: "https://github.com/users/MacRimi/projects/1",
catalog: "https://github.com/MacRimi/ProxMenux/tree/develop/oci/catalog",
validation: "https://github.com/MacRimi/ProxMenux/blob/develop/oci/VALIDATION.md",
}
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: `${NAMESPACE}.meta` })
return {
title: t("title"),
description: t("description"),
alternates: { canonical: URL },
openGraph: { title: t("title"), description: t("description"), type: "article", url: URL },
}
}
export default async function Page({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params
setRequestLocale(locale)
return <DocPage locale={locale} namespace={NAMESPACE} minutes={12} links={LINKS} />
}