Merge pull request #13818 from Ahampa07/feat/explore-plugin-tools-content

Explore Plugin: Added support for customize the explore plugin Tools Tab content
This commit is contained in:
Patrik Oldsberg
2022-11-03 16:09:50 +01:00
committed by GitHub
2 changed files with 41 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-explore': patch
---
Added a section to explore plugin README that describes the customization of explore tools content.
+36
View File
@@ -79,3 +79,39 @@ const routes = (
</FlatRoutes>
);
```
## ToolExplorer Content Customization
Override the `exploreToolsConfigRef` API in `/packages/app/src/apis.ts`.
```tsx
import { exploreToolsConfigRef } from '@backstage/plugin-explore-react';
export const apis: AnyApiFactory[] = [
...
createApiFactory({
api: exploreToolsConfigRef,
deps: {},
factory: () => ({
async getTools() {
return tools;
},
/* e.g. tools = [
{
title: 'New Relic',
description:'new relic plugin,
url: '/newrelic',
image: 'https://i.imgur.com/L37ikrX.jpg',
tags: ['newrelic', 'proxy', 'nerdGraph'],
},
]
*/
}),
}),
....
];
```