Merge pull request #24363 from Floww/fix-techdocs-doc

Fixed documentation on imports of the plugin-techdocs-backend
This commit is contained in:
Andre Wanlin
2024-04-18 16:34:55 -05:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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();
+4 -4
View File
@@ -734,7 +734,7 @@ import {
techdocsBuildsExtensionPoint,
} from '@backstage/plugin-techdocs-node';
const techdocsCustomerBuildStrategy = createBackendModule({
const techdocsCustomBuildStrategy = createBackendModule({
pluginId: 'techdocs',
moduleId: 'customBuildStrategy',
register(env) {
@@ -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(techdocsCustomBuildStrategy());
/* 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.