Repository navigation
docs: Harmonize README and pkgdown front page rendering - #749
Merged
krlmlr merged 2 commits intoSep 13, 2026
Merged
Conversation
krlmlr
force-pushed
the
claude/pkgdown-harmonization
branch
2 times, most recently
from
September 13, 2026 07:46
a11a639 to
bc9372f
Compare
krlmlr
changed the base branch from
main
to
claude/duplicate-repos-init-gf826x-pak
September 13, 2026 09:39
krlmlr
force-pushed
the
claude/pkgdown-harmonization
branch
from
September 13, 2026 13:18
bc9372f to
217e464
Compare
Part of harmonizing how `README.md` and the pkgdown front page are produced across the fleet. The output format becomes `cynkratemplate::readme_document`, which is a `github_document` that also writes the pkgdown front page from the same render. It carries `-smart` and `--wrap=preserve`, matching duckdb-r, which has used them longest: together they keep the pandoc pass close to an identity transform, so no smart quotes and no reflowing to 72 columns. That keeps the rendered file close to its source and makes future diffs sentence-level rather than whole-paragraph. Stating the format by name rather than repeating its settings means the settings live in one place instead of thirty. Rendering is unchanged in how it is invoked: `rmarkdown::render()`, `devtools::build_readme()` and the Knit button all work as before, and all now produce both files. The only new requirement is that cynkratemplate be installed. No prose changes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr
force-pushed
the
claude/pkgdown-harmonization
branch
from
September 13, 2026 16:55
217e464 to
99834e3
Compare
Output of `cynkratemplate::render_readme()`, with no hand edits. `README.md` changes are the pandoc settings from the previous commit taking effect: `--wrap=preserve` stops badge lines and sentences being broken at 72 columns, and `-smart` leaves quotes and dashes as written. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr
force-pushed
the
claude/pkgdown-harmonization
branch
from
September 13, 2026 20:30
99834e3 to
6af1517
Compare
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.
Part of a fleet-wide pkgdown harmonization. Stacked on #747 (the
pak::pak()README change) so any conflict between the two surfaces here rather than at merge time — that PR's commit is the first of the commits below, and will drop out once it merges.The tooling this calls lands in cynkra/cynkratemplate#116, with the fixes in cynkra/cynkratemplate#124.
Commits
docs: Use pak::pak()— from docs: Usepak::pak()for the development install #747, shown for context(There is no separate drift commit: this package's
README.mdwas already in sync withREADME.Rmd, which is not true everywhere.)What changes and why
The output format gains
md_extensions: "-smart"andpandoc_args: ["--wrap=preserve"], matching duckdb-r, which has used them longest. They keep the pandoc pass close to an identity transform — no smart quotes, no reflowing to 72 columns. The visible effect is that badge lines stop being broken mid-link:It also makes future diffs sentence-level rather than whole-paragraph, which is what the house line-break convention is for.
index.mdis new. It is the same render truncated at the first horizontal rule, so the pkgdown front page no longer repeats the code of conduct notice that pkgdown already puts in its sidebar. Added to.Rbuildignorein the same commit, since an unignored top-levelindex.mdis anR CMD check --as-cranNOTE.Both files now come from a single pandoc pass via
cynkratemplate::render_readme(), so they cannot drift apart in formatting the way the hand-maintained pairs elsewhere in the fleet have — by four to fourteen months in the worst cases.The example output is truncated at
max.print = 100, which the output format pins during the render. Without it the twomtcarsdumps came out at full length, thirty-odd lines each, and their length depended on whatever the rendering session happened to have set. The[ reached 'max' / getOption("max.print") -- omitted N rows ]markers in the diff are that limit taking effect, not a change to the example.Reproducing
Rendering this README requires RSQLite installed, since the examples open a connection.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m