Merge branch 'master' into tech-docs-search-by-title

Signed-off-by: Stephen <code@stephenawilson.ca>
This commit is contained in:
Stephen
2024-07-03 19:59:38 -04:00
committed by GitHub
618 changed files with 21687 additions and 4681 deletions
+35
View File
@@ -1,5 +1,40 @@
# @backstage/plugin-techdocs-backend
## 1.10.9-next.1
### Patch Changes
- 9ecf5fd: Adds extension point for publishers to the techdocs backend
- Updated dependencies
- @backstage/plugin-techdocs-node@1.12.8-next.1
- @backstage/backend-common@0.23.3-next.1
- @backstage/plugin-search-backend-module-techdocs@0.1.27-next.1
- @backstage/backend-plugin-api@0.6.22-next.1
- @backstage/catalog-client@1.6.5
- @backstage/catalog-model@1.5.0
- @backstage/config@1.2.0
- @backstage/errors@1.2.4
- @backstage/integration@1.13.0-next.0
- @backstage/plugin-catalog-common@1.0.24
- @backstage/plugin-permission-common@0.7.14
## 1.10.8-next.0
### Patch Changes
- Updated dependencies
- @backstage/backend-plugin-api@0.6.21-next.0
- @backstage/backend-common@0.23.2-next.0
- @backstage/integration@1.13.0-next.0
- @backstage/plugin-search-backend-module-techdocs@0.1.26-next.0
- @backstage/plugin-techdocs-node@1.12.7-next.0
- @backstage/catalog-client@1.6.5
- @backstage/catalog-model@1.5.0
- @backstage/config@1.2.0
- @backstage/errors@1.2.4
- @backstage/plugin-catalog-common@1.0.24
- @backstage/plugin-permission-common@0.7.14
## 1.10.6
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-techdocs-backend",
"version": "1.10.6",
"version": "1.10.9-next.1",
"description": "The Backstage backend plugin that renders technical documentation for your components",
"backstage": {
"role": "backend-plugin",
+14
View File
@@ -29,11 +29,14 @@ import {
PreparerBase,
Preparers,
Publisher,
PublisherBase,
PublisherType,
RemoteProtocol,
techdocsBuildsExtensionPoint,
TechdocsGenerator,
techdocsGeneratorExtensionPoint,
techdocsPreparerExtensionPoint,
techdocsPublisherExtensionPoint,
} from '@backstage/plugin-techdocs-node';
import { createRouter } from '@backstage/plugin-techdocs-backend';
import * as winston from 'winston';
@@ -85,6 +88,16 @@ export const techdocsPlugin = createBackendPlugin({
},
});
let customTechdocsPublisher: PublisherBase | undefined;
env.registerExtensionPoint(techdocsPublisherExtensionPoint, {
registerPublisher(type: PublisherType, publisher: PublisherBase) {
if (customTechdocsPublisher) {
throw new Error(`Publisher for type ${type} is already registered`);
}
customTechdocsPublisher = publisher;
},
});
env.registerInit({
deps: {
config: coreServices.rootConfig,
@@ -128,6 +141,7 @@ export const techdocsPlugin = createBackendPlugin({
const publisher = await Publisher.fromConfig(config, {
logger: winstonLogger,
discovery: discovery,
customPublisher: customTechdocsPublisher,
});
// checks if the publisher is working and logs the result