Repository navigation
docs: Autolink the driver generators in the README - #761
Merged
Merged
Conversation
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
changed the base branch from
main
to
claude/readme-driver-generators
September 26, 2026 18:51
krlmlr
marked this pull request as ready for review
September 27, 2026 05:44
3 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #760, which is this PR's base, so the diff shows only the render. Merge #760 first and this retargets to
mainon its own.#760 alone adds no links, which is the point of this one: it fixes the prose (the old text named
RSQLite(),RPostgreSQL()andRMySQL(), 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, soSQLite()could never link from DBI's README no matter what renders it;RSQLite::SQLite()can.Rendering with the
readme_documentformat 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, andindex.mdis 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
URLfield 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