Skip to content

docs: adoption and SEO review - #24

Open
borderss wants to merge 2 commits into
mainfrom
docs/adoption-review
Open

borderss wants to merge 2 commits into
mainfrom
docs/adoption-review

Conversation

@borderss

@borderss borderss commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

This is the adoption and SEO review of the site. The aim is that someone new to ant sees what it does for them within a page or two, and that searches for the problems ant solves find these pages.

New pages

  • Choose your path (/choose-your-path): where to start, by what you are doing: a first try, a new project, a database you already run, money, data kept for a set time, a web service, or a move from GORM.
  • Features (/features): every feature on one page, as cards that link their docs.
  • Examples (/examples): the example projects, with what each one shows. The navbar and the hero now link this page instead of the GitHub repository.
  • Guides:
    • Migrations in Go makes the same change with GORM's AutoMigrate, goose, golang-migrate, Atlas and ant.
    • UUID primary keys includes a measured index table: 1M keys on PostgreSQL 17, sized with pgstatindex, with sizes and leaf density only.
    • Using ant with an existing database walks through a real run on a hand-made legacy schema, with the SQL it sent.

Changed pages

  • Home: the DryRun, multi-tenant and N+1 cards show real output (a SAVEPOINT, two INSERTs and a RELEASE; the N+1 warning text). The hidden setup fence moved so db.Invoices type-checks.
  • Quick start: opens with go run github.com/skudra-go/ant-examples/examples/hello@latest and its output. The Next section is one paragraph that links Choose your path and AI assistants.
  • Why ant: adds a sentence on listmonk after the comparison, and a closing paragraph after Limits.
  • Other pages: concepts links Features; migrations/overview links the migrations guide; tooling/diagnostics gains "Find an N+1 query"; models/keys puts "Generate the key in Go" after "Use ID as the key" and links the UUID guide.
  • Titles and descriptions: 75 descriptions are rewritten to 120 to 155 characters, and each names Go. 18 pages get a title written for search, with the old title kept as sidebar_label.

Blog

  • Field pointers as column names: "What it costs" uses the current benchmark table, with a dated note on what was rerun.
  • Zero values and change tracking is published, dated 28 November. It moves from 2026-11-25-… to 2026-11-28-…, its numbers are current, and the NoTracking example shows the root against a session.

Site and tooling

  • Search noindex: /search had only <meta property="robots">, which search engines ignore. src/theme/SearchPage now wraps the page in noIndex, so the build has <meta name="robots" content="noindex">, and /search is left out of the sitemap.
  • 410 for the old site: src/worker.mjs turns a 404 into a 410 under 40 path patterns left over from the domain's previous owner: dated WordPress posts from 2014 to 2019, forum threads, tags, paging, comments, feeds, sitemaps, wp-* and the like. wrangler.jsonc sends only those patterns through the Worker (run_worker_first). The Worker asks the assets first, so a real page under a pattern is still served. src/worker.test.mjs has three tests, and npm test now runs src/*.test.mjs. Checked with wrangler dev: / and /concepts return 200, old date, forum, tag, sitemap and WordPress paths return 410, and unknown paths still return 404.
  • llms.txt: FeatureGrid, FeatureCard and ProjectCard render in the .md copies as a heading with a link and a source line, with a test.
  • doccheck: adds github.com/shopspring/decimal v1.6.0, so samples can model numeric(10,2) money as a decimal instead of a float64.
  • CSS: text fences in feature cards wrap.

Checks

npm run check: 624 docs samples (29 skipped) and 16 blog samples (8 skipped) type-check with 0 failures, 21 plugin and Worker tests pass, and the build succeeds. After that run, one prose sentence in the UUID guide was corrected, describing what google/uuid's NewV7 does.

goose and golang-migrate were not run. The migrations guide says both can run ant's files, and that part is unverified, so please read it closely or try it before merging.

Merge order

Merge skudra-go/ant-examples#9 first: this PR tells readers that one clone of ant-examples is enough. The ant README PR, skudra-go/ant#365, links pages added here, so it goes after this one.

Follow-ups in ant

skudra-go/ant#353, #354 and #355 came out of writing these guides. skudra-go/ant#357, #359 and #360 fix them, and the draft skudra-go/ant#364 lists the pages here to update once they ship. skudra-go/ant#356 asks the owner whether Diagnostics{} should warn about N+1 queries by default.

borderss added a commit to skudra-go/ant that referenced this pull request Nov 30, 2026
The README is the first thing most people see of ant, so this rewrites
it for someone deciding whether to try it.

## What changes

- The links row goes to Documentation, Quick start, Choose your path,
Examples and Blog on skudra.net.
- `go run github.com/skudra-go/ant-examples/examples/hello@latest` comes
first, so a reader can see ant work before reading further.
- The comments in the first snippet say what each context does: the root
is shared for reads and inserts and does not track, and a session tracks
what it loads for `SaveChanges`.
- The memory bullet now says the numbers hold with `NoTracking` where it
applies, and links the benchmarks page. The KiB table it replaced is
gone.
- Each Features bullet links its docs page.
- A new "In real code" section points at four examples: listmonk,
pagila, azugo and ledger.
- Databases links the database matrix. Learn more lists the six guides,
and About credits EF Core and Eloquent.
- The transactions link is fixed.
- The package documentation links skudra.net (ant.go, two comment
lines).

## Checked

`make fmt`, `make lint` and `make test` pass. No code changed, so no
database suite ran.

## Merge order

Merge this after skudra-go/ant-examples#9 and skudra-go/ant-docs#24,
since the README links pages that the docs PR adds (/choose-your-path,
/examples and three of the guides).
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.

1 participant