Skip to content

fix: update two code snippets in the tutorial#10727

Merged
ArmandPhilippot merged 3 commits into
withastro:mainfrom
ArmandPhilippot:fix/tutorial
Jan 20, 2025
Merged

fix: update two code snippets in the tutorial#10727
ArmandPhilippot merged 3 commits into
withastro:mainfrom
ArmandPhilippot:fix/tutorial

Conversation

@ArmandPhilippot
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot commented Jan 18, 2025

Description (required)

I followed the tutorial again to check the consistency between the tutorial and the blog-tutorial-demo repository (see withastro/blog-tutorial-demo#39 and withastro/blog-tutorial-demo#40). Almost everything looks good here, I only updated two things:

  • Adds a missing any in the code check-in of unit 5-3 to prevent a Typescript error (if someone tries to replace his code) and to match what we had before.
  • Fixes the line highlighting in unit 6-2 (I forgot to check that in Removed redundant nullish coalescing operator #10719)

Related issues & labels (optional)

  • Suggested label: code snippet update

We use `any` before to avoid a Typescript error but it is missing
in the Code Check-In. So if someone decide to replace their code with
the one suggested in Code Check-In they'll get a Typescript error.
@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Jan 18, 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/tutorial/5-astro-api/3.mdx Source changed, localizations will be marked as outdated.
en/tutorial/6-islands/2.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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 18, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0f55143
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/678e5807458153000844475d
😎 Deploy Preview https://deploy-preview-10727--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.

Copy link
Copy Markdown
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, thank you!

@ArmandPhilippot ArmandPhilippot merged commit 00323b3 into withastro:main Jan 20, 2025
@ArmandPhilippot ArmandPhilippot deleted the fix/tutorial branch January 20, 2025 14:12
thomasbnt added a commit to thomasbnt/docs that referenced this pull request Jan 21, 2025
Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
thomasbnt added a commit to thomasbnt/docs that referenced this pull request Jan 21, 2025
Signed-off-by: Thomas Bonnet <thomasbnt@protonmail.com>
thomasbnt added a commit that referenced this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants