Add multi-version pkgdown documentation with version dropdown#474
Merged
d-morrison merged 13 commits intomainfrom Jan 15, 2026
Merged
Add multi-version pkgdown documentation with version dropdown#474d-morrison merged 13 commits intomainfrom
d-morrison merged 13 commits intomainfrom
Conversation
- Add new .github/workflows/docs.yaml with multi-version support - Update pkgdown/_pkgdown.yml to exclude preview directories from search - Add .github/MULTI_VERSION_DOCS.md documentation - Remove old .github/workflows/pkgdown.yaml workflow - Update NEWS.md with multi-version documentation feature Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update pkgdown setup from ucdavis/serodynamics
Add multi-version pkgdown documentation with version dropdown
Jan 13, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. |
Contributor
|
📕 Preview documentation for this PR has been cleaned up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements multi-version pkgdown documentation based on serodynamics PR #173, enabling version navigation via dropdown menu and versioned documentation URLs.
Changes
Workflow
.github/workflows/docs.yamlwith 4-job architecture:docs: Builds site for PRs (preview), main branch, and version tagsmulti-version-docs: Generates version dropdown usinginsightsengineering/r-pkgdown-multiversion@v3upload-release-assets: Uploadspkgdown.zipto releasescleanup-pr-preview: Removes PR previews on close.github/workflows/pkgdown.yaml(single-version workflow)Configuration
pkgdown/_pkgdown.yml: Addedsearch: exclude: ['preview/'].github/MULTI_VERSION_DOCS.md: Setup documentation and troubleshooting guideDocumentation
NEWS.md: Added feature entry for multi-version documentationFeatures
https://ucd-serg.github.io/serocalculator/preview/pr<number>/with auto-cleanuphttps://ucd-serg.github.io/serocalculator/{version}/pkgdown.zipattached to each releaseChecklist
-.testthat). (N/A - workflow configuration)For more information see Contributing.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.