@backstage/plugin-techdocs-node 1.12.7-next.0 → 1.12.8-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/index.cjs.js +60 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +29 -3
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ declare class TechdocsGenerator implements GeneratorBase {
|
|
|
207
207
|
* The default docker image (and version) used to generate content. Public
|
|
208
208
|
* and static so that techdocs-node consumers can use the same version.
|
|
209
209
|
*/
|
|
210
|
-
static readonly defaultDockerImage = "spotify/techdocs:v1.2.
|
|
210
|
+
static readonly defaultDockerImage = "spotify/techdocs:v1.2.4";
|
|
211
211
|
private readonly logger;
|
|
212
212
|
private readonly containerRunner?;
|
|
213
213
|
private readonly options;
|
|
@@ -362,6 +362,7 @@ declare class Preparers implements PreparerBuilder {
|
|
|
362
362
|
type PublisherFactory = {
|
|
363
363
|
logger: Logger;
|
|
364
364
|
discovery: PluginEndpointDiscovery;
|
|
365
|
+
customPublisher?: PublisherBase | undefined;
|
|
365
366
|
};
|
|
366
367
|
/**
|
|
367
368
|
* Key for all the different types of TechDocs publishers that are supported.
|
|
@@ -473,13 +474,24 @@ interface PublisherBase {
|
|
|
473
474
|
*/
|
|
474
475
|
migrateDocsCase?(migrateRequest: MigrateRequest): Promise<void>;
|
|
475
476
|
}
|
|
477
|
+
/**
|
|
478
|
+
* Definition for a TechDocs publisher builder
|
|
479
|
+
* @public
|
|
480
|
+
*/
|
|
481
|
+
type PublisherBuilder = {
|
|
482
|
+
register(type: PublisherType, publisher: PublisherBase): void;
|
|
483
|
+
get(config: Config): PublisherBase;
|
|
484
|
+
};
|
|
476
485
|
|
|
477
486
|
/**
|
|
478
487
|
* Factory class to create a TechDocs publisher based on defined publisher type in app config.
|
|
479
488
|
* Uses `techdocs.publisher.type`.
|
|
480
489
|
* @public
|
|
481
490
|
*/
|
|
482
|
-
declare class Publisher {
|
|
491
|
+
declare class Publisher implements PublisherBuilder {
|
|
492
|
+
private publishers;
|
|
493
|
+
register(type: PublisherType | 'techdocs', publisher: PublisherBase): void;
|
|
494
|
+
get(config: Config): PublisherBase;
|
|
483
495
|
/**
|
|
484
496
|
* Returns a instance of TechDocs publisher
|
|
485
497
|
* @param config - A Backstage configuration
|
|
@@ -572,5 +584,19 @@ interface TechdocsPreparerExtensionPoint {
|
|
|
572
584
|
* @public
|
|
573
585
|
*/
|
|
574
586
|
declare const techdocsPreparerExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<TechdocsPreparerExtensionPoint>;
|
|
587
|
+
/**
|
|
588
|
+
* Extension point type for configuring a custom Techdocs publisher
|
|
589
|
+
*
|
|
590
|
+
* @public
|
|
591
|
+
*/
|
|
592
|
+
interface TechdocsPublisherExtensionPoint {
|
|
593
|
+
registerPublisher(type: PublisherType, publisher: PublisherBase): void;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Extension point for configuring a custom Techdocs publisher
|
|
597
|
+
*
|
|
598
|
+
* @public
|
|
599
|
+
*/
|
|
600
|
+
declare const techdocsPublisherExtensionPoint: _backstage_backend_plugin_api.ExtensionPoint<TechdocsPublisherExtensionPoint>;
|
|
575
601
|
|
|
576
|
-
export { DirectoryPreparer, type DocsBuildStrategy, type ETag, type GeneratorBase, type GeneratorBuilder, type GeneratorOptions, type GeneratorRunOptions, Generators, type MigrateRequest, type ParsedLocationAnnotation, type PreparerBase, type PreparerBuilder, type PreparerConfig, type PreparerOptions, type PreparerResponse, Preparers, type PublishRequest, type PublishResponse, Publisher, type PublisherBase, type PublisherFactory, type PublisherType, type ReadinessResponse, type RemoteProtocol, type SupportedGeneratorKey, type TechDocsDocument, type TechDocsMetadata, type TechdocsBuildsExtensionPoint, TechdocsGenerator, type TechdocsGeneratorExtensionPoint, type TechdocsPreparerExtensionPoint, UrlPreparer, getDocFilesFromRepository, getLocationForEntity, getMkDocsYml, getMkdocsYml, parseReferenceAnnotation, techdocsBuildsExtensionPoint, techdocsGeneratorExtensionPoint, techdocsPreparerExtensionPoint, transformDirLocation };
|
|
602
|
+
export { DirectoryPreparer, type DocsBuildStrategy, type ETag, type GeneratorBase, type GeneratorBuilder, type GeneratorOptions, type GeneratorRunOptions, Generators, type MigrateRequest, type ParsedLocationAnnotation, type PreparerBase, type PreparerBuilder, type PreparerConfig, type PreparerOptions, type PreparerResponse, Preparers, type PublishRequest, type PublishResponse, Publisher, type PublisherBase, type PublisherBuilder, type PublisherFactory, type PublisherType, type ReadinessResponse, type RemoteProtocol, type SupportedGeneratorKey, type TechDocsDocument, type TechDocsMetadata, type TechdocsBuildsExtensionPoint, TechdocsGenerator, type TechdocsGeneratorExtensionPoint, type TechdocsPreparerExtensionPoint, type TechdocsPublisherExtensionPoint, UrlPreparer, getDocFilesFromRepository, getLocationForEntity, getMkDocsYml, getMkdocsYml, parseReferenceAnnotation, techdocsBuildsExtensionPoint, techdocsGeneratorExtensionPoint, techdocsPreparerExtensionPoint, techdocsPublisherExtensionPoint, transformDirLocation };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-techdocs-node",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8-next.1",
|
|
4
4
|
"description": "Common node.js functionalities for TechDocs, to be shared between techdocs-backend plugin and techdocs-cli",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@aws-sdk/types": "^3.347.0",
|
|
53
53
|
"@azure/identity": "^4.0.0",
|
|
54
54
|
"@azure/storage-blob": "^12.5.0",
|
|
55
|
-
"@backstage/backend-common": "^0.23.
|
|
56
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
55
|
+
"@backstage/backend-common": "^0.23.3-next.1",
|
|
56
|
+
"@backstage/backend-plugin-api": "^0.6.22-next.1",
|
|
57
57
|
"@backstage/catalog-model": "^1.5.0",
|
|
58
58
|
"@backstage/config": "^1.2.0",
|
|
59
59
|
"@backstage/errors": "^1.2.4",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"winston": "^3.2.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@backstage/backend-test-utils": "^0.4.
|
|
81
|
-
"@backstage/cli": "^0.26.
|
|
80
|
+
"@backstage/backend-test-utils": "^0.4.4-next.1",
|
|
81
|
+
"@backstage/cli": "^0.26.11-next.1",
|
|
82
82
|
"@types/fs-extra": "^11.0.0",
|
|
83
83
|
"@types/js-yaml": "^4.0.0",
|
|
84
84
|
"@types/mime-types": "^2.1.0",
|