Skip to content

docs: Autolink the driver generators in the README - #761

Merged
krlmlr merged 1 commit into
claude/readme-driver-generatorsfrom
claude/readme-autolink
Nov 28, 2026
Merged

krlmlr merged 1 commit into
claude/readme-driver-generatorsfrom
claude/readme-autolink

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Stacked on #760, which is this PR's base, so the diff shows only the render. Merge #760 first and this retargets to main on its own.

#760 alone adds no links, which is the point of this one: it fixes the prose (the old text named RSQLite(), RPostgreSQL() and RMySQL(), none of which exist), and the qualification it introduces is what makes the names resolvable. downlit resolves an unqualified name against the current package's topic index only, so SQLite() could never link from DBI's README no matter what renders it; RSQLite::SQLite() can.

Rendering with the readme_document format then produces three links on that one line, to https://rsqlite.r-dbi.org/reference/SQLite.html, https://rpostgres.r-dbi.org/reference/Postgres.html and https://rmariadb.r-dbi.org/reference/dbConnect-MariaDBDriver-method.html. Nothing else in the README changes, and index.md is untouched, because pkgdown runs downlit over the front page itself.

Those three are cross-package links, which cynkra/cynkratemplate#135 pins from each installed package's DESCRIPTION URL field before downlit tries to fetch anything — otherwise the committed file would depend on which documentation sites the renderer can reach.

Ready for review: #135 is merged, so this is reproducible from the cynkratemplate on its main (0.0.2.9033). Re-rendered against that build, the committed file comes back byte for byte, and a second pass is a no-op.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

Renders `README.md` with the `readme_document` format from cynkratemplate#135,
which links inline code spans in prose that resolve to a documented object.
The three driver generators now link to their packages' pkgdown pages.

This only became possible with the preceding commit:
downlit resolves an unqualified name against the current package's topic index only,
so `SQLite()` was never going to link from DBI's README.
Qualifying it as `RSQLite::SQLite()` is what makes the link resolvable.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr changed the base branch from main to claude/readme-driver-generators September 26, 2026 18:51
@krlmlr
krlmlr added this pull request to stack #762 September 26, 2026 18:53
@krlmlr
krlmlr marked this pull request as ready for review September 27, 2026 05:44
@krlmlr krlmlr mentioned this pull request Nov 28, 2026
3 of 7 tasks
@krlmlr
krlmlr merged commit 0eda30a into main Nov 28, 2026
10 checks passed
@krlmlr
krlmlr deleted the claude/readme-autolink branch November 28, 2026 06:50
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