Skip to content

docs: Autolink the inline code in the README's prose - #69

Open
krlmlr wants to merge 1 commit into
mainfrom
claude/readme-autolink
Open

krlmlr wants to merge 1 commit into
mainfrom
claude/readme-autolink

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Regenerated README.md with the readme_document format, which links inline code spans in prose that resolve to a documented object and leaves everything else alone: code blocks, line breaks, and any span downlit cannot resolve.

10 links over 9 lines: roxygen2md's own roxygen2md() and find_rd(), plus five devtools::document() spans to https://devtools.r-lib.org/reference/document.html. Only README.md changes; index.md is deliberately not autolinked, because pkgdown runs downlit over the front page itself and linking here would double up.

Now possible because #59 brought the README under the shared rendering format; before that it was a plain github_document and nothing linked. The devtools links are cross-package, which cynkra/cynkratemplate#135 pins from the installed package's DESCRIPTION URL field before downlit tries to fetch anything, so they do not depend on what 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
and leaves code blocks, line breaks and unresolvable spans alone.

Ten links over nine lines:
roxygen2md's own two topics,
and `devtools::document()` to https://devtools.r-lib.org/reference/document.html.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr marked this pull request as ready for review September 27, 2026 05:44

This branch has not been deployed

No deployments
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