Skip to content

feat(site): ADHD-friendly pkgdown design kit (home layouts, page template, readable defaults) #120

Open

Description

@Data-Wise

Need

R package sites built with pkgdown have no shared, evidence-based design for readers who lose the thread on long pages (ADHD-friendly: one next action per page, a visible first step, scannable tables, progressive disclosure, readable defaults). medfit produced a concrete, reviewable proposal after auditing its own site; the rules and layouts are package-independent and could live in Rforge so other packages start from them.

Source (read-only, merged docs): PROPOSAL-docs-adhd-design-2026-11-12.md and AUDIT-docs-and-site-2026-11-12.md. Status: proposal, not yet applied or rendered in medfit; medfit's pilot (home page and one model page) follows. Treat the numbers below as a starting point to validate, not as settled.

What the design contains

Rules, each tied to a check: P1 one **Next:** line per page; P2 a two-sentence "what this page is for" lead; P3 tables over paragraphs; P4 progressive disclosure (details blocks); P5 at most 7 choices per menu group; P6 one home per fact; P7 a breadcrumb and "you are here" cue; P8 readable defaults (body at least 16 px, line length at most 80 characters, WCAG AA contrast 4.5:1); P9 no walls of text (sub-heading or table past 30 lines, an "On this page" block past 400 lines); P10 no setup noise (package-attach messages) on a page's first screen.

Home page layouts, labeled so a maintainer can choose:

  • A. Action first (chosen for medfit): title, a two-line "For / You get" lead, one visible action (run the short example), a one-line caveat callout where the package has one, then Install, Try it, Pick your model, More, with release notes collapsed. Best for newcomers.
  • B. Model chooser: two or three questions route to one page. Best when readers know their data, not the package's class names.
  • C. Start cards: four equal cards (Try it, Install, Pick a model, Fix an error). Easiest to scan, no single first step.
  • D. Task lanes: an "I want to..." list by intent. Best for returning users.

Model/article page template: breadcrumb, a two-line lead, a fixed facts table, a "use this page when / use another page when" table, the shortest route first, results, limits, one **Next:** link.

Requested implementation

Acceptance

  • The design kit is reviewable without running anything and states which rules are checkable and which need human review.
  • Nothing is written to a package without a shown diff and confirmation.
  • Existing pkgdown limits are respected (Markdown/Quarto, _pkgdown.yml, one CSS file; no JavaScript, no new dependency).

Activity

  1. added
    documentation
    enhancement
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions