Skip to content

About

A field guide to rhetorical manipulation: inoculation-based lessons with sourced, camp-balanced real-world examples

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Forewarned

A static educational site that teaches manipulation literacy: recognizing the rhetorical techniques used in politics and media. Built on the inoculation/prebunking model (teach the technique, drill it on fictional zero-stakes scenarios, show sourced real-world examples from opposing camps, self-test, then a final example that tests the skill against the reader's own convictions).

Editorial principles and the example-sourcing checklist live in CONTRIBUTING.md. Several principles are enforced at build time; a one-sided or under-sourced example set fails npm run build.

Stack

  • Astro static output, content collections, TypeScript. No other runtime dependencies.
  • Interactive drills and self-tests are small vanilla-JS islands.
  • Plain CSS with design tokens in src/styles/global.css. No Tailwind.
  • No backend, no accounts, no analytics.

Develop

npm install
npm run dev

Draft techniques render locally with a draft banner. Draft examples render with a visible placeholder badge.

Build

npm run build

Output goes to dist/. The build runs the editorial validators (src/lib/validate.ts plus the zod schemas in src/content.config.ts) and fails with a readable error list if any rule is violated. Draft techniques are excluded from production output.

Deploy: Cloudflare Pages

  1. Push this repository to GitHub.
  2. In the Cloudflare dashboard: Workers & Pages, then Create, then Pages, then Connect to Git, and select the repo.
  3. Build settings:
    • Framework preset: Astro
    • Build command: npm run build
    • Build output directory: dist
    • No environment variables required. (Pages' default Node version works with Astro 5; if the build image complains, set NODE_VERSION to 22.)
  4. Update site in astro.config.mjs to the production URL once the domain is attached.

Every push to the connected branch redeploys. Pull requests get preview deployments automatically, which is handy for reviewing new examples before they go live.

Repository layout

src/
  content/techniques/   one .md per technique (frontmatter + mechanic prose)
  content/examples/     one .md per sourced real-world example
  data/quizzes/         drill / self-test / hard-one data, one JSON per technique
  components/           SpecimenHeader, Drill, DissectedQuote, SelfTest, ...
  pages/                index, about, sources, techniques/[slug]
  lib/validate.ts       build-time editorial rules (balance, placeholders, spans)
  styles/global.css     design tokens and shared styles

About

A field guide to rhetorical manipulation: inoculation-based lessons with sourced, camp-balanced real-world examples

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages