Open
Description
On a private channel on slack, @benjyw suggests that it would be very valuable to be able to make updates to released docs without a release.
There's a few options for how this might work:
- sync all changes up to a particular commit on one of the
2.*.x
branches, e.g.- land a docs change to the 2.19.x branch in pantsbuild/pants
- trigger a doc sync here with that commit (NB. having the sync_docs workflow support using a commit is new functionality)
- if provided a commit, the sync docs workflow builds that version of pants to be able run the right commands
- the sync docs workflow continues as normal
- sync only the changes from a particular PR or particular commit (i.e. apply a diff)
- land a docs change to the 2.19.x branch in pantsbuild/pants
- trigger a doc sync here with that PR number (NB. having the sync_docs workflow support using a PR is new functionality)
- if provided a PR, the sync docs workflow works out the diff in the docs (and reference?), and applies only that diff
- something else?
The idea is that this makes it faster to go from "contributor submits a docs update" to "contributor can see their docs update live", than having to wait for the next real release.
Things we should potentially consider:
- what happens if there's non-trivial updates to the docs that don't make sense to publish before a release? (Concrete example: Allow passing arbitrary args to PEX invocation when building FaaS artifacts pants#20237 adds a new field to some targets, which will appear in docs, and landed in 2.18.x after 2.18.0 was released. There may be others, I don't know the rate at which they occur.)
- doc 'series' are labelled as pre-release or deprecated etc. based on the version encoded in the help-all output:
pantsbuild.org/docusaurus.config.js
Lines 59 to 65 in a2fff63
- other things?
(Potentially in direct tension with #143.)
Activity