Skip to content

feat: add /learn/security-txt and /learn/tls-rpt pages#366

Merged
schmug merged 1 commit into
mainfrom
claude/issue-362-learn-pages
May 24, 2026
Merged

feat: add /learn/security-txt and /learn/tls-rpt pages#366
schmug merged 1 commit into
mainfrom
claude/issue-362-learn-pages

Conversation

@schmug
Copy link
Copy Markdown
Owner

@schmug schmug commented May 24, 2026

$(cat <<'EOF'

Summary

  • Adds renderLearnSecurityTxt() and renderLearnTlsRpt() to src/views/learn.ts, following the exact renderLearnX() / learnPage() pattern — substantive RFC 9116 and RFC 8460 content covering record format, field semantics, common misconfigurations, and fix steps
  • Wires GET /learn/security-txt and GET /learn/tls-rpt routes in src/index.ts and adds both URLs to STATIC_SITEMAP_URLS; updates renderLearnHubMarkdown() in src/views/markdown.ts with both new slugs
  • Adds both slugs to the protocols array driving the parametric loop tests in test/index.test.ts, plus dedicated content assertions (RFC references, key fields, canonical URL) and a sitemap assertion

Closes #362

Test plan

  • GET /learn/security-txt returns 200 with correct canonical https://dmarc.mx/learn/security-txt
  • GET /learn/tls-rpt returns 200 with correct canonical https://dmarc.mx/learn/tls-rpt
  • Both pages emit TechArticle + BreadcrumbList JSON-LD (covered by parametric loop)
  • Both pages contain a /check CTA form and link to /scoring
  • Both URLs appear in /sitemap.xml
  • npm test — 1054 passed (1055 total; 1 pre-existing flaky network integration test)
  • npm run typecheck — clean
  • npm run lint — clean, 135 files checked

https://claude.ai/code/session_01CnbNthXu35yeCa6PrvcVM2
EOF
)


Generated by Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 24, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
dmarcheck 1ce83bb May 24 2026, 03:07 PM

Closes #362. Adds RFC 9116 and RFC 8460 learn pages following the
existing renderLearnX() pattern, wires both routes, adds both URLs to
SITEMAP_URLS, updates the markdown hub, and adds smoke tests verifying
200 responses with correct canonicals and substantive content.

https://claude.ai/code/session_01CnbNthXu35yeCa6PrvcVM2
@schmug schmug force-pushed the claude/issue-362-learn-pages branch from 6b635d2 to 1ce83bb Compare May 24, 2026 15:07
@schmug schmug enabled auto-merge (squash) May 24, 2026 15:07
@schmug schmug merged commit eee1c6d into main May 24, 2026
4 checks passed
@schmug schmug deleted the claude/issue-362-learn-pages branch May 24, 2026 15:07
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.

Fix dead /learn/security-txt and /learn/tls-rpt links (add learn pages)

2 participants