blob: 1cfd45705c6487771f3a9d309b67d340096d755a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// SPDX-FileCopyrightText: 2026 Progmasoft <[email protected]>
// SPDX-License-Identifier: AGPL-3.0-or-later
import { defineCollection, defineContentConfig, z } from "@nuxt/content";
// One collection of documentation for each language. A page a language lacks is shown from
// the English collection, with a note that says so.
const docs = (folder: string) =>
defineCollection({
type: "page",
source: { include: `${folder}/docs/**/*.md`, prefix: "/docs" },
schema: z.object({ source: z.string().optional() }),
});
export default defineContentConfig({
collections: {
docs_en: docs("en-US"),
docs_de: docs("de-DE"),
docs_ru: docs("ru-RU"),
docs_fr: docs("fr-FR"),
},
});
|