- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
Description
Summary
docs-builder only supports a single current version. For example, Stack current:
docs-builder/config/versions.yml
Line 6 in 99f92e5
| current: 9.1.2 | 
At build time, this version is used to conditionally render the correct applies_to badge. If the applies_to version is greater than current, we render "Stack | Planned". If the applies_to version is less than or equal to current, we render that version, for example, "Stack | 9.1.2".
A problem we're starting to see is that features added in, for example v9.0.6 are already showing as "Stack | 9.0.6" instead of "Stack | Planned". This is because we only compare against the single current stack version in versions.yml.
Proposal
Support an array of current versions:
  stack: &stack
    current: [9.1.2, 9.0.5]
Then compare applies_to badges against the relevant minor version in the array of current versions to determine the badge text that is rendered.
Outcome
If 9.0.5 is the most recently rereleased 9.0.x version, a 9.0.6 applies to badge will render as "Stack | Planned" until 9.0.6 is released and versions.yml is updated.