Merge pull request #18899 from DSmedley/master

Fixed changelog for fromConfig and moved config example to as config section of readme
This commit is contained in:
Fredrik Adelöw
2023-08-03 19:58:05 +02:00
committed by GitHub
3 changed files with 15 additions and 10 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-explore-backend': patch
---
Moved the config example from the "Tools as Code" section to the "Tools as Config" section of the README
+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: