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:
@@ -99,7 +99,7 @@
|
||||
- ];
|
||||
-
|
||||
- StaticExploreToolProvider.fromData(tools)
|
||||
+ StaticExploreToolProvider.fromData(env.config)
|
||||
+ StaticExploreToolProvider.fromConfig(env.config)
|
||||
```
|
||||
|
||||
- Updated dependencies
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user