add changelog page
This commit is contained in:
parent
e7c807ac85
commit
f3dafd1172
5 changed files with 36 additions and 9 deletions
|
|
@ -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),
|
||||
})));
|
||||
|
||||
|
|
|
|||
1
src/config/io/types.d.ts
vendored
1
src/config/io/types.d.ts
vendored
|
|
@ -84,6 +84,7 @@ export interface ModuleData {
|
|||
|
||||
export interface VersionData {
|
||||
name: string;
|
||||
changelog?: string;
|
||||
modules: ModuleData[];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue