mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 19:02:31 +00:00
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.
32 lines
1.3 KiB
TypeScript
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} />
|
|
}
|