Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added entryPoints to specify the entry points to be documented by TypeDoc #41

Merged
merged 1 commit into from
Jun 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,18 @@ function typedoc(options) {

// typedoc instance
const app = new typedocModule.Application();
app.bootstrap(options);
if (semver.gte(typedocModule.Application.VERSION, '0.16.1')) {
app.options.addReader(new typedocModule.TSConfigReader());
app.options.addReader(new typedocModule.TypeDocReader());
app.bootstrap(options);
}

if (version && options.logger !== "none") {
log(app.toString());
}
try {
const src = app.expandInputFiles(files);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this line as the convert() function does call expandInputFiles().

const project = app.convert(src);
// Specify the entry points to be documented by TypeDoc.
app.bootstrap({ ...options, entryPoints: files });
const project = app.convert();
if (project) {
if (out) app.generateDocs(project, out); // TODO promisified!!
if (json) app.generateJson(project, json); // TODO promisified!!
Expand All @@ -86,7 +85,4 @@ function typedoc(options) {
});
}

module.exports = typedoc;



module.exports = typedoc;