Skip to content

docs: generic examples and decoupled concepts#5

Merged
AbdelrhmanSaid merged 1 commit into
masterfrom
claude/docs-generic-examples
May 30, 2026
Merged

docs: generic examples and decoupled concepts#5
AbdelrhmanSaid merged 1 commit into
masterfrom
claude/docs-generic-examples

Conversation

@AbdelrhmanSaid
Copy link
Copy Markdown
Contributor

Follow-up to the usage-docs rewrite (#4). Fixes two problems with the examples.

Problem

  • Examples were consumer-specific. They were lifted from the Redot Dashboard app, so they referenced that app's models, variables, routes, and field names ($entry, $memo, dashboard.impersonate-users.store, full_name, profile_picture, Role::, …) instead of illustrating generic usage any developer could follow.
  • Unrelated concepts were stapled together. e.g. the Controllers & Responses page demonstrated no_content() — a rich-text display helper unrelated to HTTP responses.

Changes

  • Replaced consumer-specific examples with a consistent generic blog-style domain (Post/Category/User, posts.* RESTful routes, fields like title/body/published_at/avatar) across 40 files.
  • Decoupled unrelated concepts: dropped the no_content() example from the Controllers & Responses page (it already lives in Helpers); each page now illustrates only its own feature.
  • Kept the package's real API accurate where it is the actual surface: auth routes/guards, the Language model and lang:* jobs/commands, datatable column/filter types, the sidebar/toastify APIs, config keys, and the <x-layouts::dashboard> tag.

Verification

  • npm run docs:build passes — no broken internal links across the updated cross-references.
  • No remaining $entry/$memo, consumer route names, or full_name/profile_picture.
  • No prop tables, no leaked developer paths, no reference-style headings reintroduced.

https://claude.ai/code/session_013Hi7rjhfimFsq6u4DxSZrR


Generated by Claude Code

Follow-up to the usage-docs rewrite. The examples were lifted from the
Redot Dashboard consumer app, so they referenced that app's models,
variables, routes, and field names instead of illustrating generic usage.

- Replace consumer-specific examples ($entry/$memo, dashboard.*/website.*
  routes, full_name/profile_picture, app-specific models) with a generic
  blog-style domain (Post/Category/User, posts.* routes, title/body/etc.)
  consistently across all sections.
- Keep the package's real API accurate where it is the actual surface
  (auth routes/guards, Language model & lang jobs, datatable column/filter
  types, sidebar/toastify APIs, config keys, commands).
- Decouple unrelated concepts: drop the unrelated no_content() rich-text
  example from the Controllers & Responses page (it belongs in Helpers).
@AbdelrhmanSaid AbdelrhmanSaid merged commit 478678d into master May 30, 2026
2 checks passed
@AbdelrhmanSaid AbdelrhmanSaid deleted the claude/docs-generic-examples branch May 30, 2026 02:24
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.

2 participants