-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(consoleMessage): add missing console message comments #6320
docs(consoleMessage): add missing console message comments #6320
Conversation
c52f004
to
778716e
Compare
778716e
to
7ea4e4f
Compare
Co-authored-by: Max Schmitt <max@schmitt.mx>
docs/src/api/class-consolemessage.md
Outdated
@@ -5,6 +5,25 @@ | |||
## method: ConsoleMessage.args | |||
- returns: <[Array]<[JSHandle]>> | |||
|
|||
List or arguments passed to a `console` function call. | |||
|
|||
```js |
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 js snippet feels very lonely without its Python, Java and C# friends.
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.
I found that I was about to replicate the docs from Page.console
. Added a link to that. @yury-s might want to confirm a fix in the java docs.
I found this dotnet tool a few months ago https://github.com/SimonCropp/MarkdownSnippets. Although it's .NET only, the idea is straightforward. You code the code example on a compilable place
such as a unit test. And the doc would point to that snippet. Then you have a process that would replace the snippet with that code.
Just for you to think about it.
efa8e48
to
00ffd9e
Compare
closes microsoft/playwright-dotnet#1199