Skip to content

Fix manual and tutorial documentation#102

Draft
koriym wants to merge 3 commits into
1.xfrom
codex/manual-review-fixes
Draft

Fix manual and tutorial documentation#102
koriym wants to merge 3 commits into
1.xfrom
codex/manual-review-fixes

Conversation

@koriym

@koriym koriym commented Jun 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Clarify Manual installation requirements and autoload prerequisites.
  • Fix setup snippets and return-type examples to match the implementation.
  • Align the Japanese tutorial with the Manual rename, PHP 8.2 readonly classes, --no-dev install flow, extension checks, and expected-output labels.

Why

Follow-up review of PR #99 found several documentation traps for first-time users: missing extension prerequisites, autoload assumptions for MediaQuerySqlModule, a non-null raw row example, a method listed outside SqlQueryInterface, stale Feature Reference labels, and tutorial setup wording that conflicted with composer install --no-dev.

Validation

  • jekyll build --source docs --destination /private/tmp/ray-mediaquery-manual-fixes-site2
  • composer validate --strict
  • zsh -ic 'sphp85; find docs/tutorial/src -name "*.php" -exec php -l {} \;'
  • zsh -ic 'sphp85; php -m | grep -E "^(PDO|mbstring|pdo_sqlite|tokenizer)$"'
  • Temporary worktree: composer install --no-dev --no-interaction --no-progress
  • Temporary worktree: zsh -ic 'sphp85; php docs/tutorial/src/run.php'
  • Independent sub-agent re-review: no remaining actionable documentation issues

koriym added 2 commits June 5, 2026 19:05
The docs had a strong feature reference but no manual: it started at "Features"
with no installation, module wiring, or SQL-file conventions, so a reader who
landed on /reference/ could not learn how to bootstrap the library. The only
setup-bearing doc (docs/ja/MediaQuery.md) is thin and unlinked.

Add the missing front sections to docs/reference.md and reposition it as the
Manual:
- Installation (composer require, requirements).
- Setup — both module entry points (MediaQuerySqlModule auto-discovery, the
  recommended path; MediaQueryModule explicit list) plus AuraSqlModule for the
  connection, and resolving the interface from the injector. Verified against
  tests/MediaQuerySqlModuleTest.php.
- SQL Files — location, {queryId}.sql naming, named placeholders, multi-statement.
- Configuration — DSN/connection, module choice, advanced hooks.
- A short "This manual covers" table of contents.

Retitle to "Ray.MediaQuery Manual" (permalink /reference/ kept for link stability)
and update the README link and docs Home card from "Feature Reference" to "Manual".
@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 33011b89-e054-4125-8632-150aaadfa41a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/manual-review-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Accept 1.x content in all four conflicting files:
- README.md: use simplified documentation section from 1.x
- docs/reference.md: use Japanese front matter and inline labels from 1.x
- docs/index.html: use BDR card and JS language switcher from 1.x
- docs/tutorial/README.ja.md: use マニュアル label from 1.x

https://claude.ai/code/session_01HWD3hygK9SGrLvZvehW28x
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