-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Migrate documentation parsing to comment-parser #14369
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
Conversation
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/appium-service
@wdio/browser-runner
@wdio/cli
@wdio/browserstack-service
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/dot-reporter
@wdio/firefox-profile-service
@wdio/globals
@wdio/jasmine-framework
@wdio/json-reporter
@wdio/junit-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/sauce-service
@wdio/shared-store-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/smoke-test-service
@wdio/spec-reporter
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/testingbot-service
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
webdriver
webdriverio
commit: |
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.
Amazing 😍
Hey Rondleysg 👋 Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution. We've sent you an email with further instructions on how to claim your expenses from our development fund. We are looking forward to more contributions from you in the future 🙌 Have a nice day, |
@christian-bromann The caution information was displayed this way before, but I will correct it to display only "caution", ok? About the returns, it is because they do not have a description, I will add a description for them |
I was confused as why the caution banner only container
We could also just don't show the Thanks a lot! |
Proposed changes
This pull request migrates dox to comment-parser. The current library for parsing JS comments is old and unmaintained. Additionally, a refactoring was made to support the new package along with some improvements.
What Changed:
Now displays @return in all docs that have the annotation and any new annotation that is added (e.g., api/browser/getWindowSize).


Before
After
Fixed incorrect display of some parameter types (e.g., in api/browser/getCookies, the type was displayed as param instead of remote.StorageCookieFilter; in api/browser/url, Record is now correctly shown as Record<string, string>).


Before
After
Ensured parameters display the 'optional' tag when they should (e.g., in api/browser/react$, the options.state parameter).
Fixed formatting of the 'Usage' section in cases where it was previously incorrect (e.g., in api/browser/saveScreenshot).


Before
After
With the new parser, new types are supported
Types of changes
Checklist
Reviewers: @webdriverio/project-committers