Skip to content

[Discuss] Support an array of current versions #1743

@bmorelli25

Description

@bmorelli25

Summary

docs-builder only supports a single current version. For example, Stack current:

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions