274 lines · 9.6 KB
/**
 * Marketing copy for the dedicated feature pages. One entry per `/features/<slug>` page; the landing
 * page, the features index and the footer all derive their links from this list.
 */

export type DemoKey = "review" | "workflow" | "ai" | "editor" | "security" | "hosting";

export type FeatureDetail = {
  title: string;
  body: string;
  code?: { title: string; language: string; source: string };
};

export type FeaturePage = {
  slug: string;
  nav: string;
  eyebrow: string;
  /** Headline; the `emphasis` fragment is rendered in the display italic. */
  title: string;
  emphasis: string;
  lede: string;
  demo: DemoKey;
  highlights: ReadonlyArray<{ title: string; body: string }>;
  details: ReadonlyArray<FeatureDetail>;
};

const WORKFLOW_YAML = `# .gitfor/workflows/ci.yml
name: CI
on:
  push:
    branches: [main]
  pull_request:
jobs:
  test:
    runs-on: cloudflare
    strategy:
      matrix:
        node: [22, 24]
    steps:
      - uses: actions/checkout@v4