Skip to content

Conversation

@kathayl
Copy link
Contributor

@kathayl kathayl commented Jul 31, 2025

clarify viewport is for screenshot endpoint

Summary

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

clarify viewport is for screenshot endpoint
@github-actions
Copy link
Contributor

github-actions bot commented Jul 31, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/browser-rendering/ @mchenco, @cloudflare/pcx-technical-writing, @celso, @danielgek, @kathayl, @ToriLindsay
* @cloudflare/pcx-technical-writing

add what the default viewport is
@github-actions
Copy link
Contributor

github-actions bot commented Jul 31, 2025


For more options to control the final screenshot, like `clip`, `captureBeyondViewport`, `fullPage` and others, check the endpoint [reference](/api/resources/browser_rendering/subresources/screenshot/methods/create/).

:::note
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A thought on this one...
I tend to assume that one note = one concept. In this case, am I right in understanding that these two pieces of information are unrelated to each other (except for the fact that they are both good things to know for basic usage)? If so, I would suggest either:

  • Keep as a note, but put a heading on the note like Notes for basic usage and then bullet each, to make it obvious that they may be unrelated concepts.
  • Break into two separate notes and maybe give them both headings. (I'm not partial to this because it's a little too busy. And it's also hard to scale if we end up with more notes).
  • Make into a bulleted list of "Additional things to know..." but don't use the note component at all.

@kathayl kathayl merged commit 1183847 into production Aug 4, 2025
8 checks passed
@kathayl kathayl deleted the kathayl-patch-9 branch August 4, 2025 14:23
thomasgauvin pushed a commit that referenced this pull request Aug 15, 2025
* Update browser-rendering.yaml

clarify viewport is for screenshot endpoint

* Update screenshot-endpoint.mdx

add what the default viewport is

* Update src/content/release-notes/browser-rendering.yaml

Co-authored-by: ToriLindsay <[email protected]>

* Apply suggestions from code review

---------

Co-authored-by: ToriLindsay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants