-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
chore: exclude services from docs #6791
Conversation
8492247
to
d471907
Compare
|
I'm going to have to defer to others on this, but my initial reaction is that pattern could be too encompassing. It does make sense to exclude the individual service classes, but there are other files that I could see having docs for being useful for contributors (e.g various helper functions) |
Edit: Whoops... too early in the morning for me. Posted that on the wrong issue. |
Yeah I think I'd be inclined to go with something like "excludePattern": ".+\\.service\\.js$" We do have some "base" files under On reflection, I think the existing files with docstrings under |
d471907
to
e254247
Compare
Sure, I've updated it to exclude all We currently don't have any docs in Something like the following: At the very least, it gives build-docs fewer files to process, but performance isn't a significant issue and there aren't any reasons to use JSDocs on those files, I don't think. |
Agreed
Sounds reasonable to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, will hold off on merging to see what Chris thinks though
e254247
to
0633b7a
Compare
yep - agreed 👍 |
Related: #6677 (comment)
It was suggested to use a path like
services/**/*.service.js
, however I'm taking a different approach for 2 reasons:excludePattern
, as it appears to meexclude
doesn't support wildcards. (More Info).js
instead of.service.js
because the example files in the comment didn't end with.service.js
, and wouldn't have been excluded otherwise.