Skip to content

Rewrite the consumer docs in the plain-docs voice - #166

Merged
CaffeinatedCoder merged 3 commits into
mainfrom
docs/164-plain-docs-rewrite
Oct 20, 2026
Merged

CaffeinatedCoder merged 3 commits into
mainfrom
docs/164-plain-docs-rewrite

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #164

Problem

The consumer pages were correct in most places but hard to read. They had long sentences joined by semicolons and dashes, internal vocabulary (satellite, differ, seam, sentinel, refuse, scaffold, runtime wiring) and edge cases in the middle of explanations. A few statements were also wrong or out of date.

Change

The eight consumer pages, rewritten in the plain-docs voice (#163, PR #165):

  • the root README.md
  • the three package READMEs under src/*/README.md
  • docs/postgresql-indexes.md, postgresql-constraints.md, sqlserver.md and upgrading.md

What the rewrite does:

  • Voice. Pages are written to "you", lead with the example, use task headings, and put edge cases under "Good to know". The root README gets a "What you can do" list in place of the marketing bullets, and an Upgrading row in its Documentation table.
  • docs/upgrading.md is edited sentence by sentence, because it was already close to the voice and other PRs edit it too.
  • Unchanged on purpose.
    • Every fenced block is byte for byte the same as on main.
    • Every heading that something links to keeps its anchor. There are 37 of them, including those the changelogs and published release notes link to. That is why three upgrading headings still say "refuse".
    • The packed READMEs keep absolute links only.

Corrected while rewriting (these were wrong before this change, found by checking each claim against the source):

  • Root README, names. The declaration-time check covers only an explicit name used twice on one entity. Every other clash fails at migrations add.
  • Root README and upgrading.md (5.2.0). "The package never shortens default names" is no longer true: since PostgreSQL TPC with a long derived table name: the default name is too long and an explicit name repeats, so no name passes #145 it shortens TPC copies.
  • Root and PostgreSQL READMEs. The placeholder column doesn't make the generator fail. Npgsql's generator writes it into the CREATE INDEX, and the migration fails when it runs.
  • Root README. The runtime-wiring section said everything else needs no call. A SQLite table rebuild needs UseComplexIndexes() too, and now links its section.
  • Root README, amending. An index "already has the predicate" only when the predicate is its whole filter or the AND this call appended. Parts can hold expressions as well as paths.
  • PostgreSQL pages. Only the Trim methods without arguments translate. btree_gist is added with every migration that adds a temporal constraint, not only the first, and != counts as <>.
  • postgresql-constraints.md. It said none of these features need UseNpgsqlComplexIndexes(). That holds for migrations only: EnsureCreated() needs the call, as the README table says.
  • sqlserver.md. It never mentioned the implicit WHERE [c] IS NOT NULL that 5.5.0 adds to unique indexes over nullable columns.

Tests

  • Unit suite: 605/605 without Docker, including DocumentationLinkTests (relative and blob/main anchors, including the two new in-page links), DocumentationApiTests (every API name, provider scoping) and ChangelogConsistencyTests (upgrading order and the Changed-answers anchors).
  • Fenced blocks: a script compared every fenced block of each page with main, and found them identical and in the same order. A planted one-character change in a code comment made it fail.
  • Fact review: three independent reviews compared the old and new text claim by claim against src/. Each FACT finding is fixed in this PR, including slips the rewrite itself had introduced, such as "periods must not overlap" for a temporal foreign key and "on it" for AddSqlServerComplexIndexes().

Merge order: #159 and #162 also edit docs/upgrading.md and docs/postgresql-constraints.md. Whichever lands second rebases. When #162 lands, the root README's sentence that UseComplexIndexes() gives EnsureCreated() a schema without exclusion constraints needs updating to say it fails, since #150 makes the core differ refuse them.

🤖 Generated with Claude Code

The root README, the three package READMEs and docs/postgresql-indexes,
postgresql-constraints, sqlserver and upgrading: written to "you", example
first, task headings, edge cases under "Good to know", no internal jargon.
Every fenced block is unchanged and every linked heading keeps its anchor.

A claim-by-claim review against the source corrected statements that were
already wrong: TPC copy names are shortened since 5.5.0; the declaration-time
name check covers one entity's explicit names only; the placeholder column
fails when the migration runs, not in the generator; Trim is supported without
arguments only; btree_gist is added with every temporal constraint, and `!=`
counts; constraints need UseNpgsqlComplexIndexes() for EnsureCreated(); the
SQL Server page lacked the implicit IS NOT NULL filter on unique indexes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 5.5.0 milestone Oct 20, 2026
@CaffeinatedCoder CaffeinatedCoder added documentation Improvements or additions to documentation package/core Affects EFCore.ComplexIndexes package/postgresql Affects EFCore.ComplexIndexes.PostgreSQL package/sqlserver Affects EFCore.ComplexIndexes.SqlServer labels Oct 20, 2026
CaffeinatedCoder and others added 2 commits October 20, 2026 14:39
#150)

The root README still said UseComplexIndexes() with a provider package
installed gives EnsureCreated() a schema without that package's features.
Since #92 and #150 the core differ fails instead and names the method to
call. docs/upgrading.md: 'the satellite's method' → 'the provider
package's method', as in the sentence above it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation package/core Affects EFCore.ComplexIndexes package/postgresql Affects EFCore.ComplexIndexes.PostgreSQL package/sqlserver Affects EFCore.ComplexIndexes.SqlServer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite the consumer docs in the plain-docs voice

1 participant