From 414b8f16ba82674d2c579d0b5ecfe086a054d481 Mon Sep 17 00:00:00 2001 From: Dillon Smedley Date: Tue, 1 Aug 2023 22:20:50 -0400 Subject: [PATCH 1/2] Fixed changelog for fromConfig and moved config example to as config section of readme Signed-off-by: Dillon Smedley --- plugins/explore-backend/CHANGELOG.md | 2 +- plugins/explore-backend/README.md | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/explore-backend/CHANGELOG.md b/plugins/explore-backend/CHANGELOG.md index 2c478e6a4e..de8b7b7dd6 100644 --- a/plugins/explore-backend/CHANGELOG.md +++ b/plugins/explore-backend/CHANGELOG.md @@ -99,7 +99,7 @@ - ]; - - StaticExploreToolProvider.fromData(tools) - + StaticExploreToolProvider.fromData(env.config) + + StaticExploreToolProvider.fromConfig(env.config) ``` - Updated dependencies diff --git a/plugins/explore-backend/README.md b/plugins/explore-backend/README.md index a7a6496fe4..543e8e2fa2 100644 --- a/plugins/explore-backend/README.md +++ b/plugins/explore-backend/README.md @@ -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: From eda2a699f40dd9f94e89af097cdecbe7c92c2ba4 Mon Sep 17 00:00:00 2001 From: Dillon Smedley Date: Wed, 2 Aug 2023 21:26:29 -0400 Subject: [PATCH 2/2] Added changeset for explore-backend Signed-off-by: Dillon Smedley --- .changeset/hot-cats-rush.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hot-cats-rush.md diff --git a/.changeset/hot-cats-rush.md b/.changeset/hot-cats-rush.md new file mode 100644 index 0000000000..2963804ff2 --- /dev/null +++ b/.changeset/hot-cats-rush.md @@ -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