Issue 279
documentation: Guidelines that contradict the code (cache tags, Alert, tokens, sitemap notes)
Back to our planOpen
documentationtoolingpriority: low
Problem
Found while fixing stale paths (#276, PR #278). Guidance that contradicts the code or other docs, so agents get mixed signals:
docs/guidelines/payload-cms.mdandnextjs-tailwind.mdsay to userevalidatePath()/revalidateTag();docs/project.mdsays to expire tags withexpireCacheTag()(Next 16 needs a second argument).- The feedback-message snippet in
components-and-content.mduses a rawdiv, thoughsrc/platform/ui/Alert.tsxexists (the docs' own "use the shared primitives" rule). - The design-token table in
nextjs-tailwind.mdhasn't been checked againstsrc/app/(frontend)/globals.css. docs/roles/seo-specialist.md's sitemap bullets (update-frequency hints, excluding sign-in) may not match the native sitemap (#267).
Proposed fix
Make each doc match the code and docs/project.md. Where the code is right, it's a fact fix; if a fix would change a rule, label that part needs owner and ask.
Acceptance criteria
- Not done: Each item above matches the code or is filed as an owner question
- Not done: Files under 250 lines; Prettier passes
Area
tooling
Priority
Low
Generated by Claude Code, opens in a new tab