Skip to content

docs: add Your First Model guided walkthrough#93

Merged
ABB65 merged 1 commit into
mainfrom
docs/first-model-guide
Jul 17, 2026
Merged

docs: add Your First Model guided walkthrough#93
ABB65 merged 1 commit into
mainfrom
docs/first-model-guide

Conversation

@ABB65

@ABB65 ABB65 commented Jul 17, 2026

Copy link
Copy Markdown
Member

Closes the onboarding gap the docs audit flagged (SWOT W2 — high concept load): Getting Started wires up the agent and Core Concepts explains the vocabulary, but nothing took a single concrete model end-to-end. This adds that bridge page. (Follow-up to #90, now merged.)

What it is

A guided walkthrough of an faq collection — the kind that exercises the most machinery — taken all the way through:

statusmodel_savecontent_savebulk publish → content_listvalidate + generate → SDK query → and finally a review-mode save + diff + merge.

Every output is real

I did not hand-write the tool responses. I ran the built @contentrain/mcp server over InMemoryTransport against a scratch project, plus the CLI for validate/generate/diff/merge, and pasted the actual output. Entry IDs (898df4b18fc4, …), branch names, commit hashes, the on-disk en.json object-map, the meta file, the git log, and the SDK query result (node query-test.mjs[ 'Do I need a cloud account?', 'What is Contentrain?' ]) are all captured, not invented. The page says so up front and notes those values differ per machine.

This is deliberately the opposite of what the audit cleaned up in #90 — no fabricated examples that drift from behavior.

Load-bearing distinctions it makes concrete

  • Object-map storage (keyed by entry id) vs the array output of content_list
  • New entries are draft on save; only bulk update_status publishes
  • auto-merge vs review workflow — both git.action responses (auto-merged and pending-review) shown side by side, then the diff + merge loop

Wiring

Added to top nav, sidebar (first guide), the static llms.txt, and the LLMS_PAGE_ORDER for llms-full.txt. vitepress build clean.

🤖 Generated with Claude Code

Bridges the gap the docs audit flagged (SWOT W2, high concept load):
getting-started wires the agent, concepts explains vocabulary, but there
was no page taking one concrete model end-to-end. This does that for an
faq collection — define -> save -> publish -> read -> query -> review —
with real tool responses, on-disk files, and git log captured from an
actual @contentrain/mcp run against a scratch project (nothing invented).

Covers the load-bearing distinctions: object-map storage vs array output,
draft-on-save vs bulk-publish, auto-merge vs review workflow (both branch
responses shown), and the generated #contentrain SDK query. Added to nav,
sidebar (first guide), and the llms.txt / llms-full ordering.

vitepress build clean.
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for contentrain-ai ready!

Name Link
🔨 Latest commit 694d42a
🔍 Latest deploy log https://app.netlify.com/projects/contentrain-ai/deploys/6a5a773fe87e4d00087a1c3a
😎 Deploy Preview https://deploy-preview-93--contentrain-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ABB65
ABB65 merged commit 102d1c9 into main Jul 17, 2026
6 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2026
@ABB65
ABB65 deleted the docs/first-model-guide branch July 17, 2026 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant