Skip to content

docs(en): remove duplicate astro language tag in two code fences#13980

Merged
ArmandPhilippot merged 2 commits into
withastro:mainfrom
kailauber:fix/duplicate-astro-language-tag
Jun 5, 2026
Merged

docs(en): remove duplicate astro language tag in two code fences#13980
ArmandPhilippot merged 2 commits into
withastro:mainfrom
kailauber:fix/duplicate-astro-language-tag

Conversation

@kailauber

Copy link
Copy Markdown
Contributor

Two code fences in English docs have the language identifier astro duplicated in the info string:

  • src/content/docs/en/tutorial/2-pages/1.mdx:109 — "```astro astro title=..."
  • src/content/docs/en/guides/cms/contentful.mdx:291 — "```astro astro title=..."

The second astro is not a valid Expressive Code option and was clearly an accidental duplication; the language only needs to be declared once. Confirmed via grep -rn '```astro astro' src/content/docs/.

Note: this typo was propagated to all i18n locales (de, es, fr, it, ja, ko, pt-br, ru, zh-cn) but per the contributing guide I am only updating the English source — Lunaria will mark translations as outdated for sync.

No behavior change, just cleaner code-fence syntax.

@netlify

netlify Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ec688ae
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a22c61aca9f9a00086b6d26
😎 Deploy Preview https://deploy-preview-13980--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston

astrobot-houston commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

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/guides/cms/contentful.mdx Source changed, localizations will be marked as outdated.
en/tutorial/2-pages/1.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.

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch!

@ArmandPhilippot
ArmandPhilippot merged commit 4490a8d into withastro:main Jun 5, 2026
12 checks passed
@ArmandPhilippot ArmandPhilippot added the code snippet update Updates a code sample: typo, outdated code etc. label Jun 5, 2026
florian-lefebvre pushed a commit that referenced this pull request Jun 8, 2026
tarikrital pushed a commit to tarikrital/astro-docs that referenced this pull request Jul 6, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants