-
Notifications
You must be signed in to change notification settings - Fork 485
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
How to generate documentation from a set of files #526
Comments
I've just discovered (by trying) that it is possible to specify one or more directories by simply specifying the path with a path separator at the end |
You can glob it. |
I've just stumbled upon this while I nearly rejected documentation.js for not being able to scan the tree recursively ;) In the docs I only found that it does it by checking dependencies (there's that |
I also added |
I'm going to add examples to clear up this confusion by showing multiple ways of including files in documentation. There's a separate issue - that a few shells, like Windows Powershell, don't support globs ( #335 ). I'm punting on that one because we don't have Windows CI and it's not super common. |
I ported eslint's solution in #629 and it'll be available in the next release: documentation.js itself will interpret glob patterns on Windows, making it cross-platform compatible, and it will automatically turn a reference to a directory into a recursive glob of that directory! |
I cannot seem to understand how to use the documentation CLI to specify a set of files.
In jsdoc I've used
--recurse src/ods src/framework
to process all JS files in the directoriessrc/ods
andsrc/framework
recursively and I cannot see how this would be done in the documentation CLI.The text was updated successfully, but these errors were encountered: