Skip to content

docs: show the custom rule above the rules demo in the README - #845

Merged
kvlonge merged 1 commit into
mainfrom
docs/readme-rule-snippet
Sep 26, 2026
Merged

kvlonge merged 1 commit into
mainfrom
docs/readme-rule-snippet

Conversation

@kvlonge

@kvlonge kvlonge commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Why

The rules demo said the rule was "a short Python function" without showing it. Seeing the code, then seeing it fire, explains why rules are useful.

Changes

  • Show the real rules/layers.py rule from the example project above the rules GIF, with the lead-in and follow-up lines adjusted.

Verification

  • The snippet is copied verbatim from website/examples/waffle-shop/rules/layers.py.

@kvlonge
kvlonge enabled auto-merge (squash) September 26, 2026 18:29
@kvlonge
kvlonge merged commit f03daee into main Sep 26, 2026
15 checks passed
@kvlonge
kvlonge deleted the docs/readme-rule-snippet branch September 26, 2026 18:39
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