Skip to content

docs: add preview feature functionality with GitHub workflows#6471

Open
antedotee wants to merge 2 commits intopipe-cd:masterfrom
antedotee:docs-preview-feature
Open

docs: add preview feature functionality with GitHub workflows#6471
antedotee wants to merge 2 commits intopipe-cd:masterfrom
antedotee:docs-preview-feature

Conversation

@antedotee
Copy link

  • Add docs preview check workflow
  • Add docs preview deploy workflow
  • Add docs preview cleanup workflow

What this PR does:
This PR generates a github preview if the changes are made solely in the docs folder and generates a deployed website if the branch is prefixed with docs- . The automation also added the deployed website which is made using gh pages in the PR description.

Why we need it:
For better PR review velocity for maintainers

Which issue(s) this PR fixes:

Fixes #6467

I have tested the functionality locally on a seperate repo and it is working as expected. To make this work, after merging and the first workflow run, the pages settings of the repo will have to change to select gh pages from the list of branches (I have added a screenshot below for reference):
image

@antedotee antedotee requested a review from a team as a code owner January 29, 2026 05:23
@antedotee antedotee force-pushed the docs-preview-feature branch 3 times, most recently from ed1389b to 6b34046 Compare January 29, 2026 05:26
@antedotee
Copy link
Author

@eeshaanSA Please take a look. In case of any changes to make, let me know.

@antedotee antedotee force-pushed the docs-preview-feature branch 2 times, most recently from f60cd49 to 4b86daa Compare January 29, 2026 05:30
- Add docs preview check workflow
- Add docs preview deploy workflow
- Add docs preview cleanup workflow

Signed-off-by: antedotee <soniyadav2051982@gmail.com>
Signed-off-by: antedotee <soniyadav2051982@gmail.com>
@antedotee antedotee force-pushed the docs-preview-feature branch from 4b86daa to 38c311e Compare January 29, 2026 05:30
Copy link
Contributor

@eeshaanSA eeshaanSA left a comment

Choose a reason for hiding this comment

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

@antedotee, looks good on the first look. I will have to dive into the details of each file. Give me some time, I will get it reviewed.

@antedotee
Copy link
Author

Sorry for asking again😅, but did you have a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live preview for documentation site in development/CI

2 participants