Skip to content

Commit

Permalink
Add typedoc generating script to avoid /node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
bestatigen committed Jul 25, 2022
1 parent 87ffd18 commit dfe4f54
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const TypeDoc = require("typedoc");

async function main() {
const app = new TypeDoc.Application();

// Load tsconfig.json / typedoc.json files
app.options.addReader(new TypeDoc.TSConfigReader());
app.options.addReader(new TypeDoc.TypeDocReader());

app.bootstrap({});

const project = app.converter.convert(app.getEntryPoints() ?? []);

if (project) {
const outputDir = "docs";
await app.generateDocs(project, outputDir);
}
}

main().catch(console.error);

0 comments on commit dfe4f54

Please sign in to comment.