Spike: do we have enough info in a PR's workflow to build only a portion of the c8 docs? #1659
Labels
component:docs
Documentation improvements, including new or updated content
dx
Documentation infrastructure typically handled by the Camunda DX team
Related to https://github.com/camunda/product-hub/issues/499
The vast majority of
build-docs
workflow executions are for PRs running checks before GitHub decides if they're mergeable. And the vast majority of those PRs are modifying no more than 1 to 3 versions of the documentation.We should research if it's feasible to use the
build-docs
workflow context to decide which versions are affected by a PR, and modify the docusaurus config to only include those versions before building. If it's possible, this would allow us to merge PRs sooner. It would also likely be significantly less work than archiving old versions of the docs completely.Timebox: a half day
Output of this spike: details added to https://github.com/camunda/product-hub/issues/499 describing the feasibility of reducing the scope of a
build-docs
build by excluding versions not changed in the PR.Concerns/Questions I'd like to answer
pull_request
trigger; I haven't figured out how to get them all forpush
trigger. But we might be able to remove thepush
trigger entirely to simplify the workflow and unlock build time improvements.build-docs
workflow, and checks all production URLs.build-docs
workflow in a reasonable manner?note that the full build will still need to occur for deployments. I think those might be using the same workflow, in which case we'd want to bifurcate it 🍴.this is not true, there are separate workflows for publishing.The text was updated successfully, but these errors were encountered: