add changelog page

This commit is contained in:
outfoxxed 2025-07-26 21:05:24 -07:00
parent e7c807ac85
commit f3dafd1172
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 36 additions and 9 deletions

View file

@ -47,8 +47,9 @@ async function readVersionsData(): Promise<VersionsData> {
const content = await fs.readFile(versionsPath, "utf8");
const data = JSON.parse(content);
const versions = await Promise.all(data.versions.map(async (d: { name: string, types: any }) => ({
const versions = await Promise.all(data.versions.map(async (d: { name: string, changelog?: string, types: any }) => ({
name: d.name,
changelog: d.changelog ? await fs.readFile(d.changelog, "utf8") : undefined,
modules: await readModulesData(d.types),
})));

View file

@ -84,6 +84,7 @@ export interface ModuleData {
export interface VersionData {
name: string;
changelog?: string;
modules: ModuleData[];
}