feat: Add PR documentation previews via gh-pages subdirectory deployment#314
Merged
JohnGriffiths merged 2 commits intomainfrom Mar 16, 2026
Merged
Conversation
Co-authored-by: JohnGriffiths <397826+JohnGriffiths@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance documentation workflow for PR previews
feat: Add PR documentation previews via gh-pages subdirectory deployment
Mar 16, 2026
JohnGriffiths
approved these changes
Mar 16, 2026
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.
The docs workflow only deployed on pushes to
main. PRs had no way to preview documentation changes before merging.Changes
.github/workflows/docs.ymlpull-requests: writepermission (required for bot comments)pull_requestevents, deploys built docs togh-pagesunderpr-<number>/usingpeaceiris/actions-gh-pages@v3withkeep_files: trueto avoid clobbering main docshttps://griffithslab.github.io/whobpyt/pr-<number>/.github/workflows/docs-pr-cleanup.yml(new)pull_request: types: [closed]formain/devgh-pages, removespr-<number>/, and pushes the deletion to keep the branch clean after PRs are merged or closedOriginal prompt
Enhance the existing GitHub Actions workflow for documentation at .github/workflows/docs.yml to provide documentation previews for pull requests.
Requirements:
Do not disrupt main docs publishing; only add or modify to enable isolated PR previews.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: there is currently an empty docs page saying 'installation and usage'. put it there
https://griffithslab.github.io/whobpyt/documentation/usage/index.html
Assistant: I am submitting a pull request to add clear installation instructions to the "installation and usage" documentation page in GriffithsLab/whobpyt. The instructions will include pip-based installation, optional steps for installing from source, and usage verification. Once the PR is open, I will share the link for your review.
User: @copilot Accepted Confirmation: Are you sure?
Assistant: ````list type="task"
data:
- title: '[WIP] Add installation instructions to documentation page'
repository: GriffithsLab/whobpyt
url: https://github.com/copilot/tasks/pull/PR_kwDOHY95Vc7LAbfm
state: queued
The Copilot coding agent is now working on adding contributor guidelines to your development documentation, following patterns from MNE-Python and Nilearn. Track progress and review the pull request using the link above.
User: @copilot Accepted Confirmation: Are you sure?
Assistant: ````list type="task"
data:
- title: '[WIP] Add contributor guidelines to documentation page'
repository: GriffithsLab/whobpyt
url: https://github.com/copilot/tasks/pull/PR_kwDOHY95Vc7LAfvk
state: queued