Skip to content

docs: document both ways to add a CP Arena problem (admin console + JSON/seed) - #130

Merged
barunaniket merged 1 commit into
mainfrom
docs/problem-contributing
Aug 17, 2026
Merged

docs: document both ways to add a CP Arena problem (admin console + JSON/seed)#130
barunaniket merged 1 commit into
mainfrom
docs/problem-contributing

Conversation

@barunaniket

Copy link
Copy Markdown
Collaborator

What

Documents how to add a CP Arena problem — both ways — and rectifies text that predated the D1 migration and the admin console.

challenges/README.md (rewritten)

Leads with the two publish paths:

  1. Admin console/admin → New problem, fill the form, or Import from JSON (paste/upload a problem JSON to pre-fill it).
  2. JSON file + seed script — the source-of-record path for bulk authoring / CI / contributors without an admin login.

Keeps the full field schema table + checker reference, and adds a complete worked example (.json) a contributor can copy and adapt.

CONTRIBUTING.md

  • §9 "Adding a problem" now lists both paths (was "an admin dashboard is planned" — it's live).
  • Fixed the stale architecture note: problems were described as "bundled at build time" with "publishing is a redeploy". Problems live in D1 now and publish via a seed / the admin console — not a redeploy. (Only the team/initiatives content is still a build-time manifest.)

Docs only — no code changes.

…SON/seed)

challenges/README.md predated the admin console, and CONTRIBUTING.md still described
the old pre-D1 model. Rectified:

- challenges/README.md now leads with the two publish paths — the admin console
  (/admin -> New problem, including Import from JSON) and the JSON-file + seed-script
  path — keeps the full field schema, and adds a complete worked example.
- CONTRIBUTING.md section 9 lists both paths (was "admin dashboard is planned").
- CONTRIBUTING.md: fixed the stale note that problems are "bundled at build time" and
  "publishing is a redeploy" — problems live in D1 and publish via a seed or the admin
  console, not a redeploy (only the team/initiatives content is a build-time manifest).

Docs only.
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-chef-pesuecc-chapter Ready Ready Preview Aug 17, 2026 5:24am

@barunaniket
barunaniket merged commit d336853 into main Aug 17, 2026
3 checks passed
@barunaniket
barunaniket deleted the docs/problem-contributing branch August 17, 2026 05:26
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.

1 participant