Merge branch 'backstage:master' into milliehartnt123-create-ui-doc
This commit is contained in:
@@ -27,17 +27,17 @@ function sidebarElementWithIndex(
|
||||
},
|
||||
children: Array<string | object>,
|
||||
) {
|
||||
const { label, description, differentiator } = element;
|
||||
const { label, description, differentiator = '' } = element;
|
||||
return {
|
||||
type: 'category',
|
||||
label: label,
|
||||
label,
|
||||
description,
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
title: label,
|
||||
slug: `/${differentiator}${label
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9 _-]/gi, '-')}/generated-index`,
|
||||
.replace(/[^a-z0-9]/g, '-')}/generated-index`,
|
||||
},
|
||||
items: children,
|
||||
};
|
||||
@@ -405,7 +405,6 @@ export default {
|
||||
},
|
||||
[
|
||||
'plugins/index',
|
||||
'plugins/existing-plugins',
|
||||
'plugins/create-a-plugin',
|
||||
'plugins/plugin-development',
|
||||
'plugins/structure-of-a-plugin',
|
||||
|
||||
Reference in New Issue
Block a user