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

Document new types for set:html #1599

Merged
merged 6 commits into from
Sep 22, 2022
Merged

Document new types for set:html #1599

merged 6 commits into from
Sep 22, 2022

Conversation

matthewp
Copy link
Contributor

What kind of changes does this PR include?

  • New or updated content

Description

@netlify
Copy link

netlify bot commented Sep 21, 2022

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 995d2f4
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/632c7dae8ade8100082ad087
😎 Deploy Preview https://deploy-preview-1599--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@sarah11918 sarah11918 added add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) labels Sep 21, 2022
Copy link
Member

@yanthomasdev yanthomasdev left a comment

Choose a reason for hiding this comment

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

Thanks @matthewp 🙌, I added some small suggestions, let me know what you think!

src/pages/en/reference/directives-reference.md Outdated Show resolved Hide resolved
src/pages/en/reference/directives-reference.md Outdated Show resolved Hide resolved
matthewp and others added 2 commits September 21, 2022 15:52
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Thanks @matthewp! Couple of small notes here.

src/pages/en/reference/directives-reference.md Outdated Show resolved Hide resolved
<article set:html={api.getArticle(Astro.props.id)}></article>
```

`set:html={Promise<Response>}` injects a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) into an element.
Copy link
Member

Choose a reason for hiding this comment

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

What exactly gets injected here? The full contents of await response.text()? Or do we do something more to that content, like only what’s in <body> or something for fetched HTML?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The full contents. It's not await response.text() though, it streams in the contents.

matthewp and others added 3 commits September 22, 2022 11:10
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
@sarah11918 sarah11918 merged commit 7fceb6b into main Sep 22, 2022
@sarah11918 sarah11918 deleted the set-html-types branch September 22, 2022 15:28
nokazn pushed a commit to nokazn/docs.astro.build that referenced this pull request Oct 2, 2022
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
@sarah11918 sarah11918 added the minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah! label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. merge-on-release Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!) minor-release For the next minor release; in the milestone, "merge queue" when approved by Sarah!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants