A content authoring workspace for CoMapeo Product Support documentation. Write and organize Markdown drafts, reference source materials under context/, and prepare sections for publication.
context/— Source of truth (style guide, templates, quickstart materials, images). Do not edit originals.content/— Your drafts by section. Each section version includesindex.mdandreferenced.md.scripts/— Local helpers for previewing docs..github/— PR template and CI automations.
- Install dependencies:
npm i - Preview locally:
npm run docs(builds and serves) - Optional:
npm run docs:opento openhttp://localhost:4000 - Lint Markdown:
npm run lint:md
Codex (terminal-based assistant) is used to process the context/ materials and enforce the rules in this repo. It follows the constraints defined in AGENTS.md and the guidance in the context/ files listed below, so drafts end up consistent and verifiable.
- Create the section folder under
./content/<section_name>/(usesnake_case). - Use
context/templates/TODO.template.mdas a thinking aid (do not createTODO.mdin sections). - Draft
index.mdfollowingcontext/system/STYLE_GUIDE.mdandcontext/templates/SECTION.template.md. - Add images:
- Prefer existing assets under
context/sources/**using relative links from your section. - If no image exists, create a placeholder file under
./content/<section_name>/images/placeholder_<topic>.txtdescribing what to capture, and reference it with a visible TODO.
- Prefer existing assets under
- Create
referenced.mdas an exact copy ofindex.mdand add inline[Source: context/…]annotations per claim or grouped list. - Add a final
Sources:block at the end ofreferenced.mdlisting everycontext/file used. Do not add aSourcessection toindex.md. - Run the checklist in
context/system/AGENT_CONTENT_CHECKLIST.mdand fix any issues (links, images, style, naming).
- Source of truth is
context/only. Codex does not invent details; if a detail is missing it inserts a visibleTODO:. - Starts from quickstart index to locate materials:
context/sources/quickstart_guides/INDEX.md. - Treats
context/sources/mapeo_docs/as legacy (only high‑level background, no app‑specific instructions). - Enforces structure and naming: versioned folders with
index.mdandreferenced.md,snake_casefolders, compact headings. - Follows
context/system/STYLE_GUIDE.mdtone andcontext/templates/SECTION.template.mdstructure, so content reads consistently. - Manages images per repo rules: prefer existing assets with relative links; otherwise creates precise placeholders under
content/<section>/images/. - Adds inline
[Source: context/…]annotations inreferenced.mdand a finalSources:block there to make every claim traceable. - Uses
context/system/AGENT_CONTENT_CHECKLIST.mdbefore marking a section complete. - Obeys
AGENTS.mdfor tool usage, minimal diffs, and safe iteration (no destructive changes, no secrets, focused patches).
Reference files:
AGENTS.mdcontext/system/STYLE_GUIDE.mdcontext/system/AGENT_CONTENT_CHECKLIST.mdcontext/templates/SECTION.template.mdcontext/templates/REFERENCED_SECTION.template.mdcontext/templates/TODO.template.md
- Use only information from
context/. If a detail is missing, addTODO:and do not speculate. - File/folder naming:
snake_case, lowercase, ASCII. - Use relative links to assets, for example:
when linking from within thecontext/tree, or relative paths from your section when linking assets incontext/. - Treat
context/sources/mapeo_docs/as legacy: reuse only high‑level, non‑app‑specific background when strictly appropriate.
npm ci— install deps from lockfilenpm run docs— build and serve local previewnpm run docs:open— open preview URLnpm run lint:md— run Markdown lint
npm run gen:test— Generate first three missing sections (non-interactive). Uses deck roadmap and sources; in read-only/never mode, Codex outputs anapply_patchyou can apply manually.npm run gen:all— Generate all missing sections (non-interactive). Same behavior as above for read-only/never.npm run gen:smoke— Dry-run sanity check that scaffolds a test section without calling Codex (0 tokens) and verifies a newv1/is produced.npm run gen:next— Create next version for a specific section. Provide the section path via env var:SECTION="content/01_preparing_to_use_comapeo_mobile/01_understanding_comapeo_s_core_concepts_and_functions" npm run gen:next
npm run caption:all— Propose captions for all images undercontext/(writes sidecars if permitted).npm run caption— Propose a caption for a single image (expects path in the interactive session or adapted script).npm run check:links— Check Markdown links across the repo (skips external links and template examples).
- Locate materials via the quickstart index:
context/sources/quickstart_guides/INDEX.md. - Follow voice, tone, and structure guidance in
context/system/STYLE_GUIDE.mdandcontext/templates/SECTION.template.md. - Check the content roadmap:
context/content_deck/INDEX.md(summaries + folders) andcontext/content_deck/MATERIALS_INDEX.md(order only).