Skip to content

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

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

docs: Harmonize README and pkgdown front page rendering#56
krlmlr wants to merge 2 commits into
mainfrom
claude/pkgdown-harmonization

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Part of a fleet-wide pkgdown harmonization. This was the last repository in the sweep with no pull request at all — the branch was built but the push failed at the time, so it sat unpushed until now.

What changes

README.Rmd declares output: cynkratemplate::readme_document — a github_document that also writes the pkgdown front page from the same render, with -smart and --wrap=preserve so diffs stay sentence-level. Stating the format by name rather than repeating its settings means the settings live in one place instead of thirty.

index.md is newly added: the README's trailing boilerplate belongs on GitHub while pkgdown puts that material in its sidebar, so the two files genuinely differ. It is added to .Rbuildignore, since R CMD check --as-cran otherwise reports it as a non-standard top-level file.

The output format lands in cynkra/cynkratemplate#116, and the CI step that will keep these files current in cynkra/cynkratemplate#118.

Why this targets main

Elsewhere in the fleet this change is stacked on the pak::pak() README PR and targets it. This repository has no such branch, so the PR targets main and carries the pending CI alignment with cynkratemplate as its first three commits. Review the last two commits for the README work itself.

Two consecutive renders are byte-identical — checked before committing, because cynkra/cynkratemplate#118 re-renders in CI and commits the result, and a README that rendered differently each time would commit noise nightly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m


Generated by Claude Code

krlmlr and others added 2 commits September 13, 2026 09:01
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
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