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

docs: Fixed jsdoc generation by marking private methods as @private #1976

Merged
merged 1 commit into from Jan 26, 2024

Conversation

bizob2828
Copy link
Member

Description

I noticed after refactoring message-shim and webframework-shim the API docs were not being properly generated.

One issue was the WebFrameworkShim and MessageShim docs are gone, this was because they are now subdirectories. But there was also a lot of global functions. This PR marks all private methods as such in jsdoc with @private, but also fixes the public-docs script to include the new subdirectories of the shim files.

How to Test

npm run public-docs
open out/index.html

It should have MessageShim and WebFrameworkShim in the Classes section. Also the global section should remove a lot of private functions.

@bizob2828 bizob2828 added the documentation Improvements or additions to documentation label Jan 25, 2024
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f545b4e) 97.04% compared to head (afd91d8) 97.04%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1976   +/-   ##
=======================================
  Coverage   97.04%   97.04%           
=======================================
  Files         218      218           
  Lines       40457    40493   +36     
=======================================
+ Hits        39261    39297   +36     
  Misses       1196     1196           
Flag Coverage Δ
integration-tests-16.x 78.92% <100.00%> (+0.02%) ⬆️
integration-tests-18.x 79.19% <100.00%> (+0.03%) ⬆️
integration-tests-20.x 79.20% <100.00%> (+0.02%) ⬆️
unit-tests-16.x 91.15% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 91.13% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 91.13% <100.00%> (+<0.01%) ⬆️
versioned-tests-16.x 74.09% <100.00%> (+<0.01%) ⬆️
versioned-tests-18.x 74.12% <100.00%> (+<0.01%) ⬆️
versioned-tests-20.x 74.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jsumners-nr
jsumners-nr previously approved these changes Jan 26, 2024
@bizob2828 bizob2828 merged commit f33c0cc into main Jan 26, 2024
46 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Jan 26, 2024
@bizob2828 bizob2828 deleted the cleanup-js-doc branch January 26, 2024 13:51
svetlanabrennan pushed a commit to svetlanabrennan/node-newrelic that referenced this pull request Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants