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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-explore': patch
|
||||
---
|
||||
|
||||
Added a section to explore plugin README that describes the customization of explore tools content.
|
||||
@@ -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'],
|
||||
},
|
||||
]
|
||||
*/
|
||||
}),
|
||||
}),
|
||||
|
||||
....
|
||||
|
||||
];
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user