From 01950c21a0bc3b2fffd1b65ece18b83b25576f3e Mon Sep 17 00:00:00 2001 From: Floww Date: Thu, 18 Apr 2024 20:58:08 +0200 Subject: [PATCH 1/2] Fixed documentation on imports of the plugin-techdocs-backend Signed-off-by: Floww --- docs/features/techdocs/getting-started.md | 2 +- docs/features/techdocs/how-to-guides.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/features/techdocs/getting-started.md b/docs/features/techdocs/getting-started.md index 71852302e2..bf55c90af9 100644 --- a/docs/features/techdocs/getting-started.md +++ b/docs/features/techdocs/getting-started.md @@ -213,7 +213,7 @@ const backend = createBackend(); // Other plugins... /* highlight-add-start */ -backend.add(import('@backstage/plugin-search-backend-module-catalog/alpha')); +backend.add(import('@backstage/plugin-techdocs-backend/alpha')); /* highlight-add-end */ backend.start(); diff --git a/docs/features/techdocs/how-to-guides.md b/docs/features/techdocs/how-to-guides.md index a370ba5d97..e08ffcec45 100644 --- a/docs/features/techdocs/how-to-guides.md +++ b/docs/features/techdocs/how-to-guides.md @@ -759,11 +759,11 @@ const techdocsCustomerBuildStrategy = createBackendModule({ // Other plugins... /* highlight-add-start */ -backend.add(import('@backstage/plugin-search-backend-module-catalog/alpha')); -backend.add(); +backend.add(import('@backstage/plugin-techdocs-backend/alpha')); +backend.add(techdocsCustomerBuildStrategy()); /* highlight-add-end */ -backend.start(techdocsCustomerBuildStrategy()); +backend.start(); ``` > Note: You may need to add the `@backstage/plugin-techdocs-node` package to your backend `package.json` if it's not been imported already. From 4cca5c285822e97fb0c239577131bc1326b5f710 Mon Sep 17 00:00:00 2001 From: Floww Date: Thu, 18 Apr 2024 21:27:58 +0200 Subject: [PATCH 2/2] Fixed typo in code example for techdocs Signed-off-by: Floww --- docs/features/techdocs/how-to-guides.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/techdocs/how-to-guides.md b/docs/features/techdocs/how-to-guides.md index e08ffcec45..b25c2a3928 100644 --- a/docs/features/techdocs/how-to-guides.md +++ b/docs/features/techdocs/how-to-guides.md @@ -734,7 +734,7 @@ import { techdocsBuildsExtensionPoint, } from '@backstage/plugin-techdocs-node'; -const techdocsCustomerBuildStrategy = createBackendModule({ +const techdocsCustomBuildStrategy = createBackendModule({ pluginId: 'techdocs', moduleId: 'customBuildStrategy', register(env) { @@ -760,7 +760,7 @@ const techdocsCustomerBuildStrategy = createBackendModule({ /* highlight-add-start */ backend.add(import('@backstage/plugin-techdocs-backend/alpha')); -backend.add(techdocsCustomerBuildStrategy()); +backend.add(techdocsCustomBuildStrategy()); /* highlight-add-end */ backend.start();