Fixed changelog for fromConfig and moved config example to as config section of readme

Signed-off-by: Dillon Smedley <smedleydillon@gmail.com>
This commit is contained in:
Dillon Smedley
2023-08-01 22:20:50 -04:00
parent 5623a818b9
commit 414b8f16ba
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
- ];
-
- StaticExploreToolProvider.fromData(tools)
+ StaticExploreToolProvider.fromData(env.config)
+ StaticExploreToolProvider.fromConfig(env.config)
```
- Updated dependencies
+9 -9
View File
@@ -39,15 +39,6 @@ export default async function createPlugin(
}
```
#### Tools as Code
Install dependencies
```bash
# From your Backstage root directory
yarn add --cwd packages/backend @backstage/plugin-explore-backend @backstage/plugin-explore-common
```
Config:
```yaml
@@ -63,6 +54,15 @@ explore:
- nerdGraph
```
#### Tools as Code
Install dependencies
```bash
# From your Backstage root directory
yarn add --cwd packages/backend @backstage/plugin-explore-backend @backstage/plugin-explore-common
```
You'll need to add the plugin to the router in your `backend` package. You can
do this by creating a file called `packages/backend/src/plugins/explore.ts` with the following content: