Skip to content

Preview the website on documentation pull requests - #8070

Draft
dimitrieh wants to merge 3 commits into
mainfrom
docs-website-preview
Draft

Preview the website on documentation pull requests#8070
dimitrieh wants to merge 3 commits into
mainfrom
docs-website-preview

Conversation

@dimitrieh

@dimitrieh dimitrieh commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

test-with-website already checked out FlowFuse/website next to this repository and built the whole site with the PR's docs, because docs-sync.mjs prefers a sibling checkout over cloning main. It then discarded the output after the link check.

That build now lives in FlowFuse/website as a reusable workflow, called from here, so this repository stops carrying a second copy of the website pipeline and picks up changes to it as the Nuxt migration progresses. Documentation PRs from a branch in this repository additionally get the build uploaded to Netlify under a docs-pr-<number> alias, with the URL reported on the PR and recorded as a Preview deployment.

The upload is an aliased, unpublished deploy: no --prod and no --build, so netlify.toml's build command (which reindexes Algolia) never runs against a preview, and flowfuse.com keeps serving whatever it served before. Fork PRs receive no secrets, so they get the build and the link check without an upload.

test-with-website survives as a gate job, so its check name and the publish dependency are unchanged. The workflow now also triggers on changes to itself, otherwise a workflow-only PR like this one would go unverified.

Depends on FlowFuse/website#5515, which holds the reusable workflow.

Draft until:

test-with-website already checked out FlowFuse/website next to this repository
and built the whole site with the pull request's docs, because docs-sync.mjs
prefers a sibling checkout over cloning main. It then threw the output away
after the link check.

That build is now FlowFuse/website's site-preview.yml, called from here, so
this repository stops carrying a second copy of the website pipeline and picks
up changes to it as the Nuxt migration progresses. When the caller is a pull
request from a branch in this repository it also uploads the result to Netlify
under a docs-pr-<number> alias and reports the URL on the pull request.

The upload is an aliased, unpublished deploy: no --prod, and no --build, so
netlify.toml's build command (which reindexes Algolia) never runs against a
preview and flowfuse.com keeps serving whatever it served before.

test-with-website survives as a gate job so the check name and the publish
dependency are unchanged.
Without this the pull request that changes docs.yml does not trigger it, so the
build and the preview upload go unverified.
@dimitrieh

Copy link
Copy Markdown
Contributor Author

@dimitrieh

Copy link
Copy Markdown
Contributor Author

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.

1 participant