Skip to content

fix: pass explicit dest_dir to pkgdown to avoid docs/ conflict#75

Merged
chris-prener merged 1 commit into
mainfrom
74-fix-pkgdown-docs-conflict
May 31, 2026
Merged

fix: pass explicit dest_dir to pkgdown to avoid docs/ conflict#75
chris-prener merged 1 commit into
mainfrom
74-fix-pkgdown-docs-conflict

Conversation

@chris-prener

Copy link
Copy Markdown
Collaborator

Summary

Passes dest_dir = "_site" explicitly to pkgdown::build_site_github_pages() so it no longer inspects the governance docs/ directory and errors with check_dest_is_pkgdown().

Motivation

Closes #74 — the pkgdown CI job fails because docs/ contains non-pkgdown files (architecture, glossary, roadmap, etc.).

Changes

  • .github/workflows/pkgdown.yml: added dest_dir = "_site" argument (consistent with destination: _site already in _pkgdown.yml)

Testing

  • YAML syntax verified locally
  • The destination: _site in _pkgdown.yml and the explicit dest_dir in the workflow are now consistent — pkgdown will output to _site/ and the deploy step already reads from that folder

Notes

One-line fix. No behavioral change to the built site — only prevents the pre-build directory check from erroring on docs/.

build_site_github_pages() checks docs/ by default even when
_pkgdown.yml sets destination: _site. Passing dest_dir explicitly
prevents the check_dest_is_pkgdown() error without touching the
governance docs/ directory.

Closes #74

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@chris-prener chris-prener merged commit e10f4c7 into main May 31, 2026
6 checks passed
@chris-prener chris-prener deleted the 74-fix-pkgdown-docs-conflict branch June 2, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Fix pkgdown site build: docs/ directory not recognized as pkgdown output

1 participant