-
-
Notifications
You must be signed in to change notification settings - Fork 723
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
All Files marked as external #903
Comments
Hello @Roaders, TypeDoc only defines the input files as internal by default. Any imports will be considered external. One option for marking files as internal is to import a directory rather than a single input file. I'm not sure why you were unable to get |
ok, is there a way of passing a whole folder to the Application.generateDocs function as you do from the command line? I think that's the issue. |
Yeah, there is an const TypeDoc = require('typedoc');
const app = new TypeDoc.Application({
mode: 'Modules',
logger: 'none',
target: 'ES5',
module: 'CommonJS',
experimentalDecorators: true
});
const project = app.convert(app.expandInputFiles(['src']));
if (project) { // Project may not have converted correctly
const outputDir = 'docs';
// Rendered docs app.generateDocs(project, outputDir);
// Alternatively generate JSON output
app.generateJson(project, outputDir + '/documentation.json');
} |
Many thanks, I'll give that a go. |
Hi All
I am trying to create docs for all of my projects in one place. I have copied the npm imports from all these projects into a
projects
folder and I then run typedoc passing it all the files pointed to by thetypes
property in the package.json:Files structure:
Code:
This does work - I get a list of all my classes and interfaces but they are ALL marked as external and they are mixed in with all the angular, rxjs and other actual external files. They are also not searchable using the search bar at the top of the page.
I have tried playing with the
externalPattern
option but it has not made any difference. Can anyone tell me why all of these fiels are marked as external?The text was updated successfully, but these errors were encountered: