Skip to content

docs: Harmonize README and pkgdown front page rendering - #59

Open
krlmlr wants to merge 2 commits into
mainfrom
claude/pkgdown-harmonization
Open

krlmlr wants to merge 2 commits into
mainfrom
claude/pkgdown-harmonization

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026

Copy link
Copy Markdown
Member

Part of a fleet-wide pkgdown harmonization. The tooling this calls lands in cynkra/cynkratemplate#116.

Commits

  1. Adopt the shared rendering configuration — YAML only, no prose changes
  2. Render README.md and index.md — tool output, no hand edits

README.md was already in sync with README.Rmd, so there is no drift commit.

What changes

The output format gains md_extensions: "-smart" and pandoc_args: ["--wrap=preserve"], matching duckdb-r. They keep the pandoc pass close to an identity transform — no smart quotes, no reflowing to 72 columns — which keeps the rendered file close to its source and makes future diffs sentence-level rather than whole-paragraph.

index.md is new. It is the same render truncated at the first horizontal rule, so the pkgdown front page no longer repeats the boilerplate that pkgdown already puts in its sidebar. It is added to .Rbuildignore in the same commit, since an unignored top-level index.md is an R CMD check --as-cran NOTE.

Both files now come from a single pandoc pass, 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.

Reproducing

cynkratemplate::render_readme()

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m


Generated by Claude Code

@krlmlr
krlmlr force-pushed the claude/pkgdown-harmonization branch 2 times, most recently from 3625b2e to b956df9 Compare September 13, 2026 07:46
@krlmlr
krlmlr force-pushed the claude/pkgdown-harmonization branch from b956df9 to ce754bc Compare September 13, 2026 20:41
@krlmlr
krlmlr added this pull request to stack #68 September 13, 2026 21:48
@krlmlr
krlmlr force-pushed the claude/pkgdown-harmonization branch from ce754bc to 4b94fa6 Compare September 13, 2026 21:49
krlmlr and others added 2 commits September 14, 2026 05:58
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/pkgdown-harmonization branch from 4b94fa6 to 1dab560 Compare September 14, 2026 05:58
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