Merge pull request #24363 from Floww/fix-techdocs-doc
Fixed documentation on imports of the plugin-techdocs-backend
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user