@backstage/plugin-techdocs-node 1.11.5 → 1.12.0-next.2

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 CHANGED
@@ -1,28 +1,51 @@
1
1
  # @backstage/plugin-techdocs-node
2
2
 
3
- ## 1.11.5
3
+ ## 1.12.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 718b734: Create extension point `TechdocsGeneratorExtensionPoint` to allow adding a custom generator
4
8
 
5
9
  ### Patch Changes
6
10
 
7
11
  - Updated dependencies
8
- - @backstage/backend-common@0.21.3
9
- - @backstage/backend-plugin-api@0.6.13
12
+ - @backstage/integration@1.9.1-next.2
13
+ - @backstage/backend-common@0.21.4-next.2
14
+ - @backstage/backend-plugin-api@0.6.14-next.2
15
+ - @backstage/catalog-model@1.4.5-next.0
16
+ - @backstage/config@1.2.0-next.1
17
+ - @backstage/errors@1.2.4-next.0
18
+ - @backstage/integration-aws-node@0.1.10-next.1
19
+ - @backstage/plugin-search-common@1.2.11-next.1
10
20
 
11
- ## 1.11.4
21
+ ## 1.11.6-next.1
12
22
 
13
23
  ### Patch Changes
14
24
 
15
25
  - Updated dependencies
16
- - @backstage/backend-common@0.21.2
17
- - @backstage/backend-plugin-api@0.6.12
26
+ - @backstage/config@1.2.0-next.1
27
+ - @backstage/backend-common@0.21.4-next.1
28
+ - @backstage/backend-plugin-api@0.6.14-next.1
29
+ - @backstage/integration@1.9.1-next.1
30
+ - @backstage/integration-aws-node@0.1.10-next.1
31
+ - @backstage/catalog-model@1.4.5-next.0
32
+ - @backstage/errors@1.2.4-next.0
33
+ - @backstage/plugin-search-common@1.2.11-next.1
18
34
 
19
- ## 1.11.3
35
+ ## 1.11.5-next.0
20
36
 
21
37
  ### Patch Changes
22
38
 
39
+ - 5b4f565: Fix handling of default plugins that have configuration
23
40
  - Updated dependencies
24
- - @backstage/backend-common@0.21.1
25
- - @backstage/backend-plugin-api@0.6.11
41
+ - @backstage/backend-common@0.21.3-next.0
42
+ - @backstage/errors@1.2.4-next.0
43
+ - @backstage/backend-plugin-api@0.6.13-next.0
44
+ - @backstage/plugin-search-common@1.2.11-next.0
45
+ - @backstage/catalog-model@1.4.5-next.0
46
+ - @backstage/config@1.1.2-next.0
47
+ - @backstage/integration@1.9.1-next.0
48
+ - @backstage/integration-aws-node@0.1.10-next.0
26
49
 
27
50
  ## 1.11.2
28
51
 
package/dist/index.cjs.js CHANGED
@@ -429,13 +429,14 @@ const patchMkdocsYmlWithPlugins = async (mkdocsYmlPath, logger, defaultPlugins =
429
429
  mkdocsYml.plugins = defaultPlugins;
430
430
  return true;
431
431
  }
432
- if (mkdocsYml.plugins && !defaultPlugins.every((plugin) => mkdocsYml.plugins.includes(plugin))) {
433
- mkdocsYml.plugins = [
434
- .../* @__PURE__ */ new Set([...mkdocsYml.plugins, ...defaultPlugins])
435
- ];
436
- return true;
437
- }
438
- return false;
432
+ let changesMade = false;
433
+ defaultPlugins.forEach((dp) => {
434
+ if (!(mkdocsYml.plugins.includes(dp) || mkdocsYml.plugins.some((p) => p.hasOwnProperty(dp)))) {
435
+ mkdocsYml.plugins = [.../* @__PURE__ */ new Set([...mkdocsYml.plugins, dp])];
436
+ changesMade = true;
437
+ }
438
+ });
439
+ return changesMade;
439
440
  });
440
441
  };
441
442
 
@@ -620,8 +621,9 @@ class Generators {
620
621
  * @param options - Options to configure the TechDocs generator
621
622
  */
622
623
  static async fromConfig(config, options) {
624
+ var _a;
623
625
  const generators = new Generators();
624
- const techdocsGenerator = TechdocsGenerator.fromConfig(config, options);
626
+ const techdocsGenerator = (_a = options.customGenerator) != null ? _a : TechdocsGenerator.fromConfig(config, options);
625
627
  generators.register("techdocs", techdocsGenerator);
626
628
  return generators;
627
629
  }
@@ -2467,6 +2469,9 @@ class Publisher {
2467
2469
  const techdocsBuildsExtensionPoint = backendPluginApi.createExtensionPoint({
2468
2470
  id: "techdocs.builds"
2469
2471
  });
2472
+ const techdocsGeneratorExtensionPoint = backendPluginApi.createExtensionPoint({
2473
+ id: "techdocs.generator"
2474
+ });
2470
2475
 
2471
2476
  exports.DirectoryPreparer = DirectoryPreparer;
2472
2477
  exports.Generators = Generators;
@@ -2480,5 +2485,6 @@ exports.getMkDocsYml = getMkDocsYml;
2480
2485
  exports.getMkdocsYml = getMkdocsYml;
2481
2486
  exports.parseReferenceAnnotation = parseReferenceAnnotation;
2482
2487
  exports.techdocsBuildsExtensionPoint = techdocsBuildsExtensionPoint;
2488
+ exports.techdocsGeneratorExtensionPoint = techdocsGeneratorExtensionPoint;
2483
2489
  exports.transformDirLocation = transformDirLocation;
2484
2490
  //# sourceMappingURL=index.cjs.js.map