Skip to content

[DOCS-1262] Add GH action for per-page preview links #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

mdlinville
Copy link
Contributor

@mdlinville mdlinville commented Feb 10, 2025

DOCS-1262 Add GH action for per-page preview links to aid review of docs PRs

  • Run on PR creation and update
  • Transform content/**/*.md to the corresponding Cloudflare URL, including interpreting _index.md
  • Create or update the same comment in the PR

Docs: https://github.com/marketplace/actions/changed-files
Inspiration: https://github.com/cockroachdb/docs/blob/main/.github/workflows/changed_files.yml

@mdlinville mdlinville requested a review from a team as a code owner February 10, 2025 19:33
Copy link
Contributor

github-actions bot commented Feb 10, 2025

HTML previews:


    Preview links work only after the `Cloudflare Pages` build check succeeds. Links are generated only for new and modified .md files under content/.

    Feedback about HTML previews

    Copy link

    cloudflare-workers-and-pages bot commented Feb 10, 2025

    Deploying docs with  Cloudflare Pages  Cloudflare Pages

    Latest commit: 123635d
    Status: ✅  Deploy successful!
    Preview URL: https://635cc3d9.docodile.pages.dev
    Branch Preview URL: https://docs-1262.docodile.pages.dev

    View logs

    @mdlinville mdlinville force-pushed the DOCS-1262 branch 2 times, most recently from 2b35400 to 804c577 Compare February 10, 2025 19:57
    @wandb wandb deleted a comment from github-actions bot Feb 10, 2025
    @wandb wandb deleted a comment from github-actions bot Feb 10, 2025
    @mdlinville mdlinville force-pushed the DOCS-1262 branch 13 times, most recently from d1dc1ea to b1c94ea Compare February 10, 2025 23:53
    @mdlinville mdlinville force-pushed the DOCS-1262 branch 9 times, most recently from ef782dc to 8292892 Compare February 12, 2025 20:20
    @mdlinville mdlinville marked this pull request as draft February 24, 2025 21:47
    @mdlinville mdlinville force-pushed the DOCS-1262 branch 4 times, most recently from 2cc66f7 to b7711d1 Compare February 25, 2025 00:37
    @mdlinville mdlinville force-pushed the DOCS-1262 branch 8 times, most recently from 3a95da0 to 09a9164 Compare February 26, 2025 00:41
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants