Skip to content

Fix/docs render r libs#28

Merged
novica merged 3 commits into
mainfrom
fix/docs-render-r-libs
Jul 4, 2026
Merged

Fix/docs render r libs#28
novica merged 3 commits into
mainfrom
fix/docs-render-r-libs

Conversation

@novica

@novica novica commented Jul 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

docs/ isn't the repo root, so when Quarto spawns R to execute chunks
in generated reference pages (e.g. reference/hello.qmd's roxygen
@examples), it doesn't source the root .Rprofile's rv activation —
rmarkdown (installed only into rv/library by rv sync) is invisible,
failing with "there is no package called 'rmarkdown'" (seen in the
first generate-docs.yml run after merging the docs unification).

Export R_LIBS_USER pointing at rv's library (via `rv info --library`)
before invoking `quarto render docs/`, in both justfile and CI.

Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
@novica novica force-pushed the fix/docs-render-r-libs branch from 9d8e466 to 4332820 Compare July 4, 2026 14:05
novica added 2 commits July 4, 2026 16:08
Matches the R version actually installed/tested against on this
machine. Updates the pin in rproject.toml (regenerated rv.lock via
rv sync), both GitHub Actions r-version inputs, and the devcontainer
base image tag.

Verified end-to-end locally now that rv's library matches the
running R version: just lint/format/test all pass, and
just docs-build renders the full site including hello.qmd's roxygen
@examples chunks via knitr — confirming the R_LIBS_USER fix from the
previous commit works for real, not just by inspection.

Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
1. docs/index.qmd transcluded README's badges block (CI/release/tool
   shields) onto the docs site — meaningless off GitHub. Wrap it in
   README.md with <!-- badges: start/end --> markers and have
   docs-build strip that block into a generated, gitignored
   docs/_readme.md, which docs/index.qmd includes instead of README
   directly.

2. The sidebar's Home entry rendered as the bare filename ("index.html")
   while Architecture/API Reference showed real labels — the plain
   `index.qmd` list entry had no explicit text, unlike navbar's
   already-labeled Home link. Give it `text: Home` too.

Verified locally: rendered docs/html/index.html has zero
shields.io/badge.svg references, and the sidebar shows "Home" in nav,
sidebar, and breadcrumb.

Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
@novica novica merged commit f6ed8a4 into main Jul 4, 2026
2 checks passed
@novica novica deleted the fix/docs-render-r-libs branch July 4, 2026 14:54
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