noindex tooling, content/noindex/component/testing guidelines for agents
- IPAL_NOINDEX=1: whole-site noindex for staging (robots Disallow /, robots meta noindex,nofollow, X-Robots-Tag via buildSecurityHeaders). - Markdown mirrors and llms files: X-Robots-Tag noindex; Markdown adds a Link rel=canonical to the HTML page. - buildNoindexField refuses noindex on the homepage and archive pages. - AGENT.md §0c: writing pages for Google and AI (structure, answer-first, facts, E-E-A-T, entity consistency, sameAs, aiSummary, meta) and a when-to-noindex table (legal pages stay indexed by default; drafts instead of noindexed pages; staging via env). - AGENT.md §6.0: ten component rules (small, Button styled once, buttons as '+ Add Button' array, variants, panel clarity); audit warns on buttons styled inside sections. - AGENT.md §8a + smoke.spec.template.ts: what to test in a client project; PROGRAMISTA §8.1a: how the plugin itself is tested. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -105,6 +105,9 @@ if [ -n "$BLOCKS" ]; then
|
||||
report ERROR "hardcoded href/src/file paths in blocks" "§2, §6 use CMSLink / Media" \
|
||||
"$(g 'href=\{?["`]/|<img |/files/|/images/|\.pdf' $BLOCKS --include=*.tsx | nc '(href|<img|/files/|/images/|\.pdf)')"
|
||||
|
||||
report WARNING "button styled inside a section" "§6.0 style buttons once in Button.tsx — sections render <CMSLink> (appearance from the panel)" \
|
||||
"$(g '<button[^>]*className=[^>]*(bg-|rounded|px-[0-9])' $BLOCKS --include=*.tsx)"
|
||||
|
||||
report ERROR "raw <a>/<Link> in blocks" "§6.3 links from the panel render via CMSLink" \
|
||||
"$(g '<(a|Link)[ >]' $BLOCKS --include=*.tsx)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user