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

Add reference for named slot functions #8946

Merged
merged 4 commits into from
Jul 30, 2024
Merged

Add reference for named slot functions #8946

merged 4 commits into from
Jul 30, 2024

Conversation

BryceRussell
Copy link
Member

Description (required)

This PR partially addresses issue #8855 by adding an example for named slot functions to the reference page for Astro.slots.render()

Related issues & labels (optional)

Copy link

netlify bot commented Jul 29, 2024

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit c0e81e7
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/66a917540b99860008766a63
😎 Deploy Preview https://deploy-preview-8946--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 configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Jul 29, 2024

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale File Note
en reference/api-reference.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

This looks great, @BryceRussell ! Thank you so much for tackling this! See my comment below re: can we make advice easier if we suggest that the tag should be a standard HTML element.

I get that the naming of the tag is arbitrary, but I wonder whether presenting it as an element avoids some of the naming restrictions we don't want them to get tripped up by?

@sarah11918 sarah11918 added the add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. label Jul 30, 2024
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for this @BryceRussell ! Merge whenever you're happy with it!

@sarah11918 sarah11918 added the Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)! label Jul 30, 2024
@BryceRussell BryceRussell merged commit b70194f into main Jul 30, 2024
10 checks passed
@BryceRussell BryceRussell deleted the slot-functions branch July 30, 2024 18:14
thomasbnt added a commit to thomasbnt/docs that referenced this pull request Jul 31, 2024
Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
yanthomasdev added a commit that referenced this pull request Aug 1, 2024
…pi-reference.mdx` (#8944)

* i18n(fr): Add `reference/api-refenrece.mdx` L0 to L501 now, miss L502 to L1026

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): Add `reference/api-refenrece.mdx` L502 to L1026

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): Fix links

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): translate api-reference.mdx from l1026 to end

* i18n(fr): Fix links, remove "NBSP" space and fix typo at "régionaux" L1570

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* i18n(fr): Update `reference/dev-toolbar-reference.mdx` from #8923

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* i18n(fr): Update `guides/routing.mdx` from #8941

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* Update src/content/docs/fr/reference/api-reference.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/guides/routing.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Update src/content/docs/fr/guides/routing.mdx

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* Updating file since #8946

Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>

* i18n(fr): Fix typo in from #8947

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): Update `guides/routing.mdx` from #8967

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* i18n(fr): Update `reference/api-reference.mdx` from #8967

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>

* chore: Mettre à jour la documentation de référence de l'API

---------

Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
@sarah11918 sarah11918 added the feedback-improvement Response to widget/Discord feedback label Aug 14, 2024
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. feedback-improvement Response to widget/Discord feedback Merge Queue Approved and ready to be merged (wait for feature release if also labelled M-O-R)!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants