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:
@@ -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
|
||||
@@ -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