@backstage/plugin-techdocs-backend 1.1.2-next.2 → 1.1.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 +77 -0
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,82 @@
|
|
|
1
1
|
# @backstage/plugin-techdocs-backend
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
|
|
8
|
+
- 61fba6e50b: In order to ensure a good, stable TechDocs user experience when running TechDocs with `techdocs.builder` set to `local`, the number of concurrent builds has been limited to 10. Any additional builds requested concurrently will be queued and handled as prior builds complete. In the unlikely event that you need to handle more concurrent builds, consider scaling out your TechDocs backend deployment or using the `external` option for `techdocs.builder`.
|
|
9
|
+
- 5d66d4ff67: Output logs from a TechDocs build to a logging transport in addition to existing
|
|
10
|
+
frontend event stream, for capturing these logs to other sources.
|
|
11
|
+
|
|
12
|
+
This allows users to capture debugging information around why tech docs fail to build
|
|
13
|
+
without needing to rely on end users capturing information from their web browser.
|
|
14
|
+
|
|
15
|
+
The most common use case is to log to the same place as the rest of the backend
|
|
16
|
+
application logs.
|
|
17
|
+
|
|
18
|
+
Sample usage:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
import { DockerContainerRunner } from '@backstage/backend-common';
|
|
22
|
+
import {
|
|
23
|
+
createRouter,
|
|
24
|
+
Generators,
|
|
25
|
+
Preparers,
|
|
26
|
+
Publisher,
|
|
27
|
+
} from '@backstage/plugin-techdocs-backend';
|
|
28
|
+
import Docker from 'dockerode';
|
|
29
|
+
import { Router } from 'express';
|
|
30
|
+
import { PluginEnvironment } from '../types';
|
|
31
|
+
|
|
32
|
+
export default async function createPlugin(
|
|
33
|
+
env: PluginEnvironment,
|
|
34
|
+
): Promise<Router> {
|
|
35
|
+
const preparers = await Preparers.fromConfig(env.config, {
|
|
36
|
+
logger: env.logger,
|
|
37
|
+
reader: env.reader,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const dockerClient = new Docker();
|
|
41
|
+
const containerRunner = new DockerContainerRunner({ dockerClient });
|
|
42
|
+
|
|
43
|
+
const generators = await Generators.fromConfig(env.config, {
|
|
44
|
+
logger: env.logger,
|
|
45
|
+
containerRunner,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const publisher = await Publisher.fromConfig(env.config, {
|
|
49
|
+
logger: env.logger,
|
|
50
|
+
discovery: env.discovery,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
await publisher.getReadiness();
|
|
54
|
+
|
|
55
|
+
return await createRouter({
|
|
56
|
+
preparers,
|
|
57
|
+
generators,
|
|
58
|
+
publisher,
|
|
59
|
+
logger: env.logger,
|
|
60
|
+
// Passing a buildLogTransport as a parameter in createRouter will enable
|
|
61
|
+
// capturing build logs to a backend log stream
|
|
62
|
+
buildLogTransport: env.logger,
|
|
63
|
+
config: env.config,
|
|
64
|
+
discovery: env.discovery,
|
|
65
|
+
cache: env.cache,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
- Updated dependencies
|
|
71
|
+
- @backstage/plugin-search-common@0.3.5
|
|
72
|
+
- @backstage/plugin-catalog-common@1.0.3
|
|
73
|
+
- @backstage/backend-common@0.14.0
|
|
74
|
+
- @backstage/integration@1.2.1
|
|
75
|
+
- @backstage/plugin-techdocs-node@1.1.2
|
|
76
|
+
- @backstage/catalog-client@1.0.3
|
|
77
|
+
- @backstage/plugin-permission-common@0.6.2
|
|
78
|
+
- @backstage/catalog-model@1.0.3
|
|
79
|
+
|
|
3
80
|
## 1.1.2-next.2
|
|
4
81
|
|
|
5
82
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-techdocs-backend",
|
|
3
3
|
"description": "The Backstage backend plugin that renders technical documentation for your components",
|
|
4
|
-
"version": "1.1.2
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"clean": "backstage-cli package clean"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@backstage/backend-common": "^0.14.0
|
|
38
|
-
"@backstage/catalog-client": "^1.0.3
|
|
39
|
-
"@backstage/catalog-model": "^1.0.3
|
|
37
|
+
"@backstage/backend-common": "^0.14.0",
|
|
38
|
+
"@backstage/catalog-client": "^1.0.3",
|
|
39
|
+
"@backstage/catalog-model": "^1.0.3",
|
|
40
40
|
"@backstage/config": "^1.0.1",
|
|
41
41
|
"@backstage/errors": "^1.0.0",
|
|
42
|
-
"@backstage/integration": "^1.2.1
|
|
43
|
-
"@backstage/plugin-catalog-common": "^1.0.3
|
|
44
|
-
"@backstage/plugin-permission-common": "^0.6.2
|
|
45
|
-
"@backstage/plugin-search-common": "^0.3.5
|
|
46
|
-
"@backstage/plugin-techdocs-node": "^1.1.2
|
|
42
|
+
"@backstage/integration": "^1.2.1",
|
|
43
|
+
"@backstage/plugin-catalog-common": "^1.0.3",
|
|
44
|
+
"@backstage/plugin-permission-common": "^0.6.2",
|
|
45
|
+
"@backstage/plugin-search-common": "^0.3.5",
|
|
46
|
+
"@backstage/plugin-techdocs-node": "^1.1.2",
|
|
47
47
|
"@types/express": "^4.17.6",
|
|
48
48
|
"dockerode": "^3.3.1",
|
|
49
49
|
"express": "^4.17.1",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"winston": "^3.2.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@backstage/backend-test-utils": "^0.1.25
|
|
60
|
-
"@backstage/cli": "^0.17.2
|
|
61
|
-
"@backstage/plugin-search-backend-node": "0.6.2
|
|
59
|
+
"@backstage/backend-test-utils": "^0.1.25",
|
|
60
|
+
"@backstage/cli": "^0.17.2",
|
|
61
|
+
"@backstage/plugin-search-backend-node": "0.6.2",
|
|
62
62
|
"@types/dockerode": "^3.3.0",
|
|
63
63
|
"msw": "^0.42.0",
|
|
64
64
|
"supertest": "^6.1.3"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"config.d.ts"
|
|
69
69
|
],
|
|
70
70
|
"configSchema": "config.d.ts",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "e42cb3887e41f756c16380d757d93feda27f40ee"
|
|
72
72
|
}
|