Skip to content

docs: group pkgdown Reference into thematic sections#107

Merged
VincentGuyader merged 1 commit into
masterfrom
feat/pkgdown-reference-grouping
May 6, 2026
Merged

docs: group pkgdown Reference into thematic sections#107
VincentGuyader merged 1 commit into
masterfrom
feat/pkgdown-reference-grouping

Conversation

@VincentGuyader
Copy link
Copy Markdown
Member

Summary

The pkgdown site auto-generated a single flat list of all exports.
With nine entries spanning three distinct conceptual layers (high-
level builders, R6 class, helpers), a new user landing on the
Reference index could not tell at a glance where to start.

This PR adds a _pkgdown.yml that groups the Reference index into
five small thematic sections:

  • Dockerfile builders: dock_from_desc, dock_from_renv, parse_dockerfile.
  • Dockerfile R6 class: Dockerfile.
  • R-to-shell helper: r.
  • System requirements: get_sysreqs, compact_sysreqs.
  • Project setup: docker_ignore_add.

_pkgdown.yml is added to .Rbuildignore so it does not bloat the
package tarball; same for any future docs/ or pkgdown/
directories pkgdown might generate locally.

Test plan

  • pkgdown::check_pkgdown() clean.
  • All 8 NAMESPACE exports listed exactly once across the five
    sections (no missing, no double-listing).
  • R CMD check --as-cran unaffected (the new file is build-ignored).
  • pr-reviewer approve with one optional nit (the "builders"
    desc was tweaked to mention parsing, since parse_dockerfile
    is a deserializer rather than a builder from a descriptor).

Context

Tier 5 polish item from the post-CRAN-prep roadmap, post-CRAN
nice-to-have. No code surface, no API change. The deployed site at
https://thinkr-open.github.io/dockerfiler/ will pick up the
grouping on next pkgdown CI run.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the pkgdown documentation site’s Reference index by introducing a _pkgdown.yml configuration that groups exported functions into thematic sections, making the API easier to discover for new users.

Changes:

  • Add _pkgdown.yml to define five thematic groups for the pkgdown Reference index.
  • Update .Rbuildignore to exclude _pkgdown.yml and any locally generated docs/ / pkgdown/ directories from the built package tarball.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.Rbuildignore Ignores _pkgdown.yml plus docs/ and pkgdown/ so pkgdown artifacts/config don’t enter the package build.
_pkgdown.yml Defines grouped Reference sections covering all current NAMESPACE exports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread _pkgdown.yml Outdated
desc: >
High-level entry points that produce a `Dockerfile` object,
either from a project descriptor (DESCRIPTION, renv.lock) or
by parsing an existing Dockerfile file. Most users start here.
The pkgdown site auto-generated a single flat list of all exports.
With nine entries spanning three distinct conceptual layers (high-
level builders, R6 class, helpers), a new user landing on the
Reference index could not tell at a glance where to start.

Group the Reference index into five small sections so the
"start here" surface (the three `dock_from_*` / `parse_dockerfile`
builders) stays at the top, the low-level R6 class lives on its
own, and the sysreqs / project-setup helpers sit on the side.

`_pkgdown.yml` is added to `.Rbuildignore` so it does not bloat
the package tarball; same for any future `docs/` or `pkgdown/`
directories pkgdown might generate locally.

`pkgdown::check_pkgdown()` validates clean.
@VincentGuyader VincentGuyader force-pushed the feat/pkgdown-reference-grouping branch from 07aae9e to bb99525 Compare May 6, 2026 07:57
@VincentGuyader VincentGuyader merged commit 46b2414 into master May 6, 2026
6 checks passed
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