Skip to content

fix(image-service-reference): add API reference blocks + fix snippets#12230

Merged
ArmandPhilippot merged 4 commits intowithastro:mainfrom
ArmandPhilippot:fix/image-service-reference
Sep 11, 2025
Merged

fix(image-service-reference): add API reference blocks + fix snippets#12230
ArmandPhilippot merged 4 commits intowithastro:mainfrom
ArmandPhilippot:fix/image-service-reference

Conversation

@ArmandPhilippot
Copy link
Member

Description (required)

  • Adds Type/Since block to follow the API references format.
  • Fixes some code snippets that contained Typescript issues (because Astro uses Typescript, and we're showing Typescript files (import type))

You can check the details per heading below. I'm using an expandable content here because the list to track all the changes is quite long. 😅

Show details

Related issues & labels (optional)

  • Suggested label: code snippet update, consistency/formatting

@ArmandPhilippot ArmandPhilippot added code snippet update Updates a code sample: typo, outdated code etc. consistency/formatting Standardizing without changing docs content e.g. indenting, lists etc. labels Aug 27, 2025
@netlify
Copy link

netlify bot commented Aug 27, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit af7c240
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/68c2e5f78c64240008590ac2
😎 Deploy Preview https://deploy-preview-12230--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 project configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Aug 27, 2025

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

File Note
en/reference/image-service-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.

Thank you for this very detailed PR @ArmandPhilippot and sorry it took me a while to get around to it! I only spotted one thing, but otherwise just looking at syntax (and trusting you to have done all the research 😅 ) , what I am in a position to review LGTM!

Is there someone else you think we should ping to pull in here for a more technical review of this?

@ArmandPhilippot
Copy link
Member Author

No worries, anyone could have reviewed this one I think! I mean there is no new content, I only:

  • fixed some TypeScript errors in code blocks, without any functional changes. Copying and pasting into a new Astro project should be enough to check for any errors!
  • collected types/since information. I don't think I missed any links to help review this! 😆 What I forgot to mention is that I replaced LocalImageTransform with the actual type (as we did in transform) because LocalImageTransform is not exported/public. That's why this is a bit more verbose than the source code (ie. { src: string, [key: string]: any }).

So, thank you for taking the time for this one! 🙌🏽

I don't see anyone in particular we should ping to look into this. Maybe JSPark if he has the time, since he's both technical and sufficiently thorough to spot any mistake/oversight?
I'll ping him, unless you can think of someone else. I don't think we need someone from core to do that... unless one of them gets bored. 😅

@sarah11918
Copy link
Member

OK @ArmandPhilippot I leave this completely to you! If you're happy with my having proofread it, and it LGTM, you are welcome to merge it as NWTWWHB! (I'm sure jspark will alert us of any errors when translating, and we can fix them then! 😂 )

So go ahead whenever you feel comfortable! 💜

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.

LGTM!

@ArmandPhilippot ArmandPhilippot merged commit 44b976e into withastro:main Sep 11, 2025
10 checks passed
@ArmandPhilippot ArmandPhilippot deleted the fix/image-service-reference branch September 11, 2025 15:39
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code snippet update Updates a code sample: typo, outdated code etc. consistency/formatting Standardizing without changing docs content e.g. indenting, lists etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants