1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/lib/release-notes-schema.js
Jason Etcovitch 92d5722103 Add 2.22 release notes (#16586)
* Add 2.22.0

* Add 2.22.1

* Add 2.22.2

* Add 2.22.3

* Add 2.22.4

* Lint YAML files

* intro shouldn't be required

* Align all notes

* Full height sidebar

* Make the sidebar full height properly

* Get the real layout going

* Include full name

* Move details > summary around

* Fix sticky sidebar

* Tweak bottom of page

* Add more label colors

* Change heading title

* Don't be <details>, change sticky header

* Include other releases' info

* Show prev/next links

* Change sidenav to show all releases

* Fix ordering of chevron

* Fix link underlines

* Collapsing minor versions

* Moar padding

* Setup schema for sub-sections

* Update a YAML file to match schema

* Redo rendering/sorting logic

* Update layout

* Convert remaining notes

* Improve schema

* Use proper min properties

* Custom bullet points

* Show details control for version picker

* Improve layout on small screens

* One more tiny fix

* Order by semver

* Use proper version in details

* Fix extra arrows showing up

* Change label colors

* Pass the reference check

* Add gradients

* Gradient all the things
2020-12-11 13:43:11 -05:00

55 lines
948 B
JavaScript

const section = {
anyOf: [
{
type: 'array',
items: { type: 'string' },
minItems: 1
},
{
type: 'object',
properties: {
heading: {
type: 'string',
required: true
},
notes: {
type: 'array',
items: { type: 'string' },
required: true,
minItems: 1
}
}
}
]
}
module.exports = {
properties: {
intro: {
type: 'string'
},
date: {
type: 'string',
format: 'date',
required: true
},
release_candidate: {
type: 'boolean',
default: false
},
sections: {
required: true,
type: 'object',
minProperties: 1,
properties: [
'bugs',
'known_issues',
'features',
'changes',
'deprecations',
'security_fixes'
].reduce((prev, curr) => ({ ...prev, [curr]: section }), {})
}
}
}