Run prettier

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-03-15 09:34:26 +01:00
parent 6582844118
commit 0fc52fed39
2 changed files with 16 additions and 14 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
{
"releases": {
"Release Notes": [
"releases/v1.0.0"
]
"Release Notes": ["releases/v1.0.0"]
},
"docs": {
"Overview": [
+15 -11
View File
@@ -9,17 +9,21 @@
// site configuration options.
// This figures out what the most recent release version is, so that we can link to it in the header
const [{name: latestRelease}] = require('fs').readdirSync(require('path').resolve(__dirname, '../docs/releases')).map(file => {
const match = file.match(/^v(\d+)\.(\d+)\.(\d+)\.md$/)
if (!match) {
return undefined
}
const parts = match.slice(1).map(v => parseInt(v, 10))
return {
name: file.slice(0, file.length - '.md'.length),
weight: parts[0]*1000000 + parts[1]*1000 + parts[2],
}
}).filter(Boolean).sort((a, b) => b.weight - a.weight);
const [{ name: latestRelease }] = require('fs')
.readdirSync(require('path').resolve(__dirname, '../docs/releases'))
.map(file => {
const match = file.match(/^v(\d+)\.(\d+)\.(\d+)\.md$/);
if (!match) {
return undefined;
}
const parts = match.slice(1).map(v => parseInt(v, 10));
return {
name: file.slice(0, file.length - '.md'.length),
weight: parts[0] * 1000000 + parts[1] * 1000 + parts[2],
};
})
.filter(Boolean)
.sort((a, b) => b.weight - a.weight);
const siteConfig = {
title: 'Backstage Software Catalog and Developer Platform', // Title for your website.