-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: generate method signatures in docs #4590
Conversation
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.
Great change!
docs/core-concepts.md
Outdated
@@ -128,7 +128,7 @@ await frame.fill('#username-input', 'John'); | |||
|
|||
- [class `Page`](./api.md#class-page) | |||
- [class `Frame`](./api.md#class-frame) | |||
- [page.frame(options)](./api.md#pageframeoptions) | |||
- [page.frame(options)](./api.md#pageframeframeselector) |
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.
Update this to [page.frame(frameSelector)]
.
docs/emulation.md
Outdated
@@ -183,4 +183,4 @@ await page.emulateMedia({ media: 'print' }); | |||
#### API reference | |||
|
|||
- [`browser.newContext([options])`](./api.md#browsernewcontextoptions) | |||
- [`page.emulateMedia([options])`](./api.md#pageemulatemediaoptions) | |||
- [`page.emulateMedia([options])`](./api.md#pageemulatemediaparams) |
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.
Update this to page.emulateMedia([params])
.
docs/api.md
Outdated
@@ -153,7 +154,7 @@ const { firefox } = require('playwright'); // Or 'chromium' or 'webkit'. | |||
``` | |||
|
|||
See [ChromiumBrowser], [FirefoxBrowser] and [WebKitBrowser] for browser-specific features. Note that | |||
[browserType.connect(options)](#browsertypeconnectoptions) and | |||
[browserType.connect(options)](#browsertypeconnectparams) and |
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.
Update to [browserType.connect(params)]
docs/api.md
Outdated
@@ -227,7 +228,7 @@ Indicates that the browser is connected. | |||
- `httpCredentials` <[Object]> Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). | |||
- `username` <[string]> | |||
- `password` <[string]> | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaoptions) for more details. Defaults to '`light`'. | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaparams) for more details. Defaults to '`light`'. |
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.
Update to [page.emulateMedia(params)]
docs/api.md
Outdated
@@ -302,7 +303,7 @@ Creates a new browser context. It won't share cookies/cache with other browser c | |||
- `httpCredentials` <[Object]> Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). | |||
- `username` <[string]> | |||
- `password` <[string]> | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaoptions) for more details. Defaults to '`light`'. | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaparams) for more details. Defaults to '`light`'. |
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.
Same here.
docs/api.md
Outdated
@@ -1187,10 +1188,10 @@ not defined. | |||
|
|||
Adds a `<script>` tag into the page with the desired url or content. | |||
|
|||
Shortcut for [page.mainFrame().addScriptTag(options)](#frameaddscripttagoptions). | |||
Shortcut for [page.mainFrame().addScriptTag(options)](#frameaddscripttagscript). |
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.
Update this to [page.mainFrame().addScriptTag(script)]
.
docs/api.md
Outdated
@@ -1199,14 +1200,14 @@ Shortcut for [page.mainFrame().addScriptTag(options)](#frameaddscripttagoptions) | |||
Adds a `<link rel="stylesheet">` tag into the page with the desired url or a `<style type="text/css">` tag with the | |||
content. | |||
|
|||
Shortcut for [page.mainFrame().addStyleTag(options)](#frameaddstyletagoptions). | |||
Shortcut for [page.mainFrame().addStyleTag(options)](#frameaddstyletagstyle). |
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.
Update this to [page.mainFrame().addStyleTag(style)]
.
docs/api.md
Outdated
@@ -4834,7 +4835,7 @@ some differences for Linux users. | |||
- `httpCredentials` <[Object]> Credentials for [HTTP authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication). | |||
- `username` <[string]> | |||
- `password` <[string]> | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaoptions) for more details. Defaults to '`light`'. | |||
- `colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaparams) for more details. Defaults to '`light`'. |
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.
Update this to [page.emulateMedia(params)]
.
3744df3
to
4394bd7
Compare
4394bd7
to
ef40aac
Compare
No description provided.