返回 CodeWhale
contributing.ts
根目录 / web / lib / content / contributing.ts
1 import type { IconName } from "@/components/icon";
2 import { FACTS } from "../facts.generated";
3 import type { LocalizedText } from "./vocabulary";
4
5 export interface ContributionPath {
6 title: LocalizedText;
7 body: LocalizedText;
8 href: string;
9 icon: IconName;
10 }
11
12 export const SKILL_CONTRIBUTION: ContributionPath = {
13 title: { en: "Share a skill", zh: "分享技能" },
14 body: {
15 en: "Package a checklist or report format with the two-file plugin tutorial.",
16 zh: "用两文件插件教程,将清单或报告格式打包为可分享的技能。",
17 },
18 href: `https://github.com/codewhale-hq/Codewhale/blob/${FACTS.latestPublishedRelease?.tag ?? "main"}/docs/PLUGIN_AUTHORING.md`,
19 icon: "layers",
20 };
21
21 lines TYPESCRIPT