docs-util: add script to generate events info (#12340)

* docs-util: add script to generate events info

* add property and parent name to json
This commit is contained in:
Shahed Nasser
2025-05-01 14:44:24 +03:00
committed by GitHub
parent e3e02a1cc8
commit 91f5ac91a9
12 changed files with 1061 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import { CommonCliOptions } from "../types/index.js"
import { GitManager } from "../classes/helpers/git-manager.js"
import DmlGenerator from "../classes/generators/dml.js"
import RouteExamplesGenerator from "../classes/generators/route-examples.js"
import EventsGenerator from "../classes/generators/events.js"
export default async function (
commitSha: string,
@@ -71,5 +72,14 @@ export default async function (
await routeExamplesGenerator.run()
}
if (type === "all" || type === "events") {
const eventsGenerator = new EventsGenerator({
paths: filteredFiles,
...options,
})
await eventsGenerator.run()
}
console.log(`Finished generating docs for ${filteredFiles.length} files.`)
}