Skip to content

website: fix the three lessons whose snippets fail the examples gate - #3674

Merged
BaseMax merged 1 commit into
mainfrom
fix/learn-snippets
Nov 19, 2026
Merged

BaseMax merged 1 commit into
mainfrom
fix/learn-snippets

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 19, 2026

Copy link
Copy Markdown
Member

The Check the examples gate on main still failed after the example fixes, on lesson snippets only:

  • en 31-page-forms: wrap = hard needs quotes, the enum word is a string and an unquoted wrap reads as the boolean style property.
  • fa 29-page-media: referrer policy = "no-referrer" is not a Persian value, the word is "بدون ارجاع". Four snippets.
  • fa 45-events-dom: the component example was marked snip, so the checker wrapped it inside a page block where components cannot be declared. The English lesson already has the block without snip, the Persian one matches it now.

…cy value, and the component block is not compile checked
@BaseMax
BaseMax requested a review from a team as a code owner November 19, 2026 13:41
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Contributor
sha=edd2e907ce064769aeeeeaf22b796a35bfe4af96

🤖 Salam AI review

Verdict: ✅ Good to merge

commit edd2e90 · 3 files · +6 −6 · model salam

Summary

This pull request updates three website lesson snippets so they match the examples gate: the English forms lesson quotes the wrap enum value, the Persian media lesson uses the Persian referrer-policy value in four snippets, and the Persian events lesson stops compile-checking a component example that cannot appear inside a page block. The changes are small and focused on documentation content.

What changed

The pull request touches only website lesson content. In website/content/en/learn/31-page-forms.txt, the wrap example changes from wrap = hard to wrap = "hard". In website/content/fa/learn/29-page-media.txt, four referrer-policy snippets change from "no-referrer" to "بدون ارجاع". In website/content/fa/learn/45-events-dom.txt, the component example's <pre> loses the snip class, matching the English lesson.

Review

The edits are narrowly scoped to the three lessons named in the description and do not alter surrounding prose or examples. The quoted wrap value is consistent with the stated reason that an unquoted enum word can be misread as a boolean style property. The Persian referrer-policy value is applied consistently to all four affected snippets, including link, image, area, and iframe. Removing snip from the component example is appropriate because that example declares a component, which cannot be wrapped in a page block by the checker; the English lesson already uses the same unchecked form.

Tests

No new automated tests are added. The change is validated by the website examples gate, which compiles the snippets. The diff itself shows the intended four snippet updates in the media lesson and the single class change in the events lesson.

Risks

The main residual risk is that the Persian enum alias and the quoted wrap spelling depend on compiler behavior not visible in this diff. If the examples gate still reports a failure, the next step would be to compare the affected snippets against the compiler's accepted enum spellings and adjust only those values.


⚠️ This review was written automatically by an AI and may contain mistakes. It is a helper for maintainers, not a replacement for a human review: check the code yourself before merging.

@BaseMax
BaseMax merged commit 72f7101 into main Nov 19, 2026
11 of 12 checks passed
@BaseMax
BaseMax deleted the fix/learn-snippets branch November 19, 2026 13:42
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.

1 participant