@techdocs/cli 1.8.25 → 1.9.0-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 +27 -0
- package/README.md +2 -1
- package/dist/commands/index.cjs.js +13 -7
- package/dist/commands/index.cjs.js.map +1 -1
- package/dist/embedded-app/.config-schema.json +408 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{124.f02a9318.chunk.js → 124.9c3315bf.chunk.js} +2 -2
- package/dist/embedded-app/static/{124.f02a9318.chunk.js.map → 124.9c3315bf.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2401.4d69c234.chunk.js → 2401.480d3231.chunk.js} +2 -2
- package/dist/embedded-app/static/{2401.4d69c234.chunk.js.map → 2401.480d3231.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2420.979e1d31.chunk.js → 2420.02740444.chunk.js} +2 -2
- package/dist/embedded-app/static/{2420.979e1d31.chunk.js.map → 2420.02740444.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{287.e0b65890.chunk.js → 287.0a1ae361.chunk.js} +2 -2
- package/dist/embedded-app/static/{287.e0b65890.chunk.js.map → 287.0a1ae361.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3182.0ac241c5.chunk.js → 3182.8be35725.chunk.js} +2 -2
- package/dist/embedded-app/static/{3182.0ac241c5.chunk.js.map → 3182.8be35725.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3632.f343436e.chunk.js → 3632.75f621ce.chunk.js} +2 -2
- package/dist/embedded-app/static/{3632.f343436e.chunk.js.map → 3632.75f621ce.chunk.js.map} +1 -1
- package/dist/embedded-app/static/5470.1a28734c.chunk.js +3 -0
- package/dist/embedded-app/static/5470.1a28734c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{5788.b8d84f8c.chunk.js → 5788.cd9a99f1.chunk.js} +1 -1
- package/dist/embedded-app/static/5788.cd9a99f1.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6271.020ea145.chunk.js → 6271.1007bfa8.chunk.js} +2 -2
- package/dist/embedded-app/static/{6271.020ea145.chunk.js.map → 6271.1007bfa8.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{6415.493349e2.chunk.js → 6415.8cce89fe.chunk.js} +2 -2
- package/dist/embedded-app/static/{6415.493349e2.chunk.js.map → 6415.8cce89fe.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8307.b0a2a85f.chunk.js → 8307.cf92a830.chunk.js} +2 -2
- package/dist/embedded-app/static/{8307.b0a2a85f.chunk.js.map → 8307.cf92a830.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8384.b9605cda.chunk.js → 8384.604de781.chunk.js} +2 -2
- package/dist/embedded-app/static/{8384.b9605cda.chunk.js.map → 8384.604de781.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8803.20e0d00b.chunk.js → 8803.511872f8.chunk.js} +1 -1
- package/dist/embedded-app/static/{8803.20e0d00b.chunk.js.map → 8803.511872f8.chunk.js.map} +1 -1
- package/dist/embedded-app/static/9234.26971228.chunk.js +4 -0
- package/dist/embedded-app/static/9234.26971228.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9652.78fa0c73.chunk.js → 9652.be70f990.chunk.js} +2 -2
- package/dist/embedded-app/static/{9652.78fa0c73.chunk.js.map → 9652.be70f990.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{main.01d08696.js → main.5b071983.js} +27 -27
- package/dist/embedded-app/static/main.5b071983.js.map +1 -0
- package/dist/embedded-app/static/{module-material-table.84f30b2f.js → module-material-table.d6e8d890.js} +2 -2
- package/dist/embedded-app/static/{module-material-table.84f30b2f.js.map → module-material-table.d6e8d890.js.map} +1 -1
- package/dist/embedded-app/static/module-material-ui.b24ef3a3.js +24 -0
- package/dist/embedded-app/static/module-material-ui.b24ef3a3.js.map +1 -0
- package/dist/embedded-app/static/module-remix-run.ae6d33c5.js +13 -0
- package/dist/embedded-app/static/module-remix-run.ae6d33c5.js.map +1 -0
- package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4f6018a3.chunk.js → react-syntax-highlighter_languages_highlight_lisp.75c1c83e.chunk.js} +2 -2
- package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_lisp.4f6018a3.chunk.js.map → react-syntax-highlighter_languages_highlight_lisp.75c1c83e.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{runtime.01d08696.js → runtime.5b071983.js} +2 -2
- package/dist/embedded-app/static/{runtime.01d08696.js.map → runtime.5b071983.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.01d08696.js → vendor.5b071983.js} +45 -45
- package/dist/embedded-app/static/vendor.5b071983.js.map +1 -0
- package/dist/lib/PublisherConfig.cjs.js +4 -1
- package/dist/lib/PublisherConfig.cjs.js.map +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/package.json +7 -7
- package/dist/embedded-app/static/4487.f04b8beb.chunk.js +0 -3
- package/dist/embedded-app/static/4487.f04b8beb.chunk.js.map +0 -1
- package/dist/embedded-app/static/5788.b8d84f8c.chunk.js.map +0 -1
- package/dist/embedded-app/static/9234.6839c56f.chunk.js +0 -4
- package/dist/embedded-app/static/9234.6839c56f.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.01d08696.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.909829ed.js +0 -24
- package/dist/embedded-app/static/module-material-ui.909829ed.js.map +0 -1
- package/dist/embedded-app/static/module-remix-run.ba6397c2.js +0 -13
- package/dist/embedded-app/static/module-remix-run.ba6397c2.js.map +0 -1
- package/dist/embedded-app/static/vendor.01d08696.js.map +0 -1
- /package/dist/embedded-app/static/{createComponent.975d1e1e..svg → createComponent.975d1e1e.svg} +0 -0
- /package/dist/embedded-app/static/{mic-drop.fe3ef4d0..svg → mic-drop.fe3ef4d0.svg} +0 -0
- /package/dist/embedded-app/static/{missingAnnotation.67f79e98..svg → missingAnnotation.67f79e98.svg} +0 -0
- /package/dist/embedded-app/static/{noBuild.1715fa71..svg → noBuild.1715fa71.svg} +0 -0
- /package/dist/embedded-app/static/{noInformation.4b426325..svg → noInformation.4b426325.svg} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
+
## 1.9.0-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-defaults@0.8.0-next.1
|
|
9
|
+
- @backstage/catalog-model@1.7.3
|
|
10
|
+
- @backstage/cli-common@0.1.15
|
|
11
|
+
- @backstage/config@1.3.2
|
|
12
|
+
- @backstage/plugin-techdocs-node@1.13.0-next.0
|
|
13
|
+
|
|
14
|
+
## 1.9.0-next.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 8de3d2d: Allow configurable optional retries for publisher AWS S3 operations.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 69f84ac: Internal update to work with dynamic imports.
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/backend-defaults@0.8.0-next.0
|
|
25
|
+
- @backstage/plugin-techdocs-node@1.13.0-next.0
|
|
26
|
+
- @backstage/catalog-model@1.7.3
|
|
27
|
+
- @backstage/cli-common@0.1.15
|
|
28
|
+
- @backstage/config@1.3.2
|
|
29
|
+
|
|
3
30
|
## 1.8.25
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -44,7 +44,8 @@ yarn techdocs-cli:dev [...options]
|
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
46
|
# Prior to executing the techdocs-cli command
|
|
47
|
-
export
|
|
47
|
+
export GLOBAL_AGENT_HTTP_PROXY=${HTTP_PROXY}
|
|
48
|
+
export GLOBAL_AGENT_HTTPS_PROXY=${HTTPS_PROXY}
|
|
48
49
|
export GLOBAL_AGENT_NO_PROXY=${NO_PROXY}
|
|
49
50
|
```
|
|
50
51
|
|
|
@@ -46,7 +46,7 @@ function registerCommands(program) {
|
|
|
46
46
|
"--runAsDefaultUser",
|
|
47
47
|
"Bypass setting the container user as the same user and group id as host for Linux and MacOS",
|
|
48
48
|
false
|
|
49
|
-
).alias("build").action(lazy(() =>
|
|
49
|
+
).alias("build").action(lazy(() => import('./generate/generate.cjs.js'), "default"));
|
|
50
50
|
program.command("migrate").description(
|
|
51
51
|
"Migrate objects with case-sensitive entity triplets to lower-case versions."
|
|
52
52
|
).requiredOption(
|
|
@@ -90,7 +90,7 @@ function registerCommands(program) {
|
|
|
90
90
|
"--concurrency <MAX CONCURRENT REQS>",
|
|
91
91
|
"Optional Controls the number of API requests allowed to be performed simultaneously.",
|
|
92
92
|
"25"
|
|
93
|
-
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() =>
|
|
93
|
+
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() => import('./migrate/migrate.cjs.js'), "default"));
|
|
94
94
|
program.command("publish").description(
|
|
95
95
|
"Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc."
|
|
96
96
|
).requiredOption(
|
|
@@ -127,6 +127,9 @@ function registerCommands(program) {
|
|
|
127
127
|
).option(
|
|
128
128
|
"--awsBucketRootPath <AWS BUCKET ROOT PATH>",
|
|
129
129
|
"Optional sub-directory to store files in Amazon S3"
|
|
130
|
+
).option(
|
|
131
|
+
"--awsMaxAttempts <AWS MAX ATTEMPTS>",
|
|
132
|
+
"Optional maximum number of retries for AWS S3 operations. If not specified, default value of 3 is used."
|
|
130
133
|
).option(
|
|
131
134
|
"--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>",
|
|
132
135
|
"(Required for OpenStack) specify when --publisher-type openStackSwift"
|
|
@@ -146,7 +149,7 @@ function registerCommands(program) {
|
|
|
146
149
|
"--directory <PATH>",
|
|
147
150
|
"Path of the directory containing generated files to publish",
|
|
148
151
|
"./site/"
|
|
149
|
-
).action(lazy(() =>
|
|
152
|
+
).action(lazy(() => import('./publish/publish.cjs.js'), "default"));
|
|
150
153
|
program.command("serve:mkdocs").description("Serve a documentation project locally using MkDocs serve.").option(
|
|
151
154
|
"-i, --docker-image <DOCKER_IMAGE>",
|
|
152
155
|
"The mkdocs docker container to use",
|
|
@@ -164,7 +167,7 @@ function registerCommands(program) {
|
|
|
164
167
|
"--site-name",
|
|
165
168
|
"Name for site when using default MkDocs config",
|
|
166
169
|
"Documentation Site"
|
|
167
|
-
).option("-p, --port <PORT>", "Port to serve documentation locally", "8000").option("-v --verbose", "Enable verbose output.", false).action(lazy(() =>
|
|
170
|
+
).option("-p, --port <PORT>", "Port to serve documentation locally", "8000").option("-v --verbose", "Enable verbose output.", false).action(lazy(() => import('./serve/mkdocs.cjs.js'), "default"));
|
|
168
171
|
program.command("serve").description(
|
|
169
172
|
"Serve a documentation project locally in a Backstage app-like environment"
|
|
170
173
|
).option(
|
|
@@ -212,12 +215,14 @@ function registerCommands(program) {
|
|
|
212
215
|
"--preview-app-port can only be used together with --preview-app-bundle-path"
|
|
213
216
|
);
|
|
214
217
|
}
|
|
215
|
-
}).action(lazy(() =>
|
|
218
|
+
}).action(lazy(() => import('./serve/serve.cjs.js'), "default"));
|
|
216
219
|
}
|
|
217
|
-
function lazy(
|
|
220
|
+
function lazy(moduleLoader, exportName) {
|
|
218
221
|
return async (...args) => {
|
|
219
222
|
try {
|
|
220
|
-
const
|
|
223
|
+
const mod = await moduleLoader();
|
|
224
|
+
const actualModule = mod.default;
|
|
225
|
+
const actionFunc = actualModule[exportName];
|
|
221
226
|
await actionFunc(...args);
|
|
222
227
|
process.exit(0);
|
|
223
228
|
} catch (error) {
|
|
@@ -227,5 +232,6 @@ function lazy(getActionFunc) {
|
|
|
227
232
|
};
|
|
228
233
|
}
|
|
229
234
|
|
|
235
|
+
exports.lazy = lazy;
|
|
230
236
|
exports.registerCommands = registerCommands;
|
|
231
237
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../src/commands/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\nconst defaultPreviewAppPort = '3000';\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .option(\n '--defaultPlugin [defaultPlugins...]',\n 'Plugins which should be added automatically to the mkdocs.yaml file',\n [],\n )\n .option(\n '--runAsDefaultUser',\n 'Bypass setting the container user as the same user and group id as host for Linux and MacOS',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate').then(m => m.default)));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate').then(m => m.default)));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsProxy <HTTPS Proxy>',\n 'Optional Proxy to use for AWS requests.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath <AWS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath <GCS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish').then(m => m.default)));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs').then(m => m.default)));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--preview-app-bundle-path <PATH_TO_BUNDLE>',\n 'Preview documentation using another web app',\n )\n .option(\n '--preview-app-port <PORT>',\n 'Port for the preview app to be served on',\n defaultPreviewAppPort,\n )\n .option(\n '-c, --mkdocs-config-file-name <FILENAME>',\n 'Mkdocs config file name',\n )\n .option(\n '--mkdocs-parameter-clean',\n 'Pass \"--clean\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-dirtyreload',\n 'Pass \"--dirtyreload\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-strict',\n 'Pass \"--strict\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .hook('preAction', command => {\n if (\n command.opts().previewAppPort !== defaultPreviewAppPort &&\n !command.opts().previewAppBundlePath\n ) {\n command.error(\n '--preview-app-port can only be used together with --preview-app-bundle-path',\n );\n }\n })\n .action(lazy(() => import('./serve/serve').then(m => m.default)));\n}\n\n// Wraps an action function so that it always exits and handles errors\n// Humbly taken from backstage-cli's registerCommands\nfunction lazy(\n getActionFunc: () => Promise<(...args: any[]) => Promise<void>>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const actionFunc = await getActionFunc();\n await actionFunc(...args);\n process.exit(0);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n"],"names":["TechdocsGenerator"],"mappings":";;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA;AAC7C,MAAM,qBAAwB,GAAA,MAAA;AAEvB,SAAS,iBAAiB,OAAkB,EAAA;AACjD,EAAA,OAAA,CACG,OAAQ,CAAA,UAAU,CAClB,CAAA,WAAA,CAAY,oDAAoD,CAChE,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,6DAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,sDAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,+BAAA;AAAA,IACA,oCAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA,CAAO,WAAa,EAAA,qCAAqC,CACzD,CAAA,MAAA;AAAA,IACC,aAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,gCAAA;AAAA,IACA;AAAA,GAID,CAAA,MAAA;AAAA,IACC,eAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,aAAA;AAAA,IACA,gDAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA,CAAO,cAAgB,EAAA,wBAAA,EAA0B,KAAK,CACtD,CAAA,MAAA;AAAA,IACC,gCAAA;AAAA,IACA,kEAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,+BAAA;AAAA,IACA,qJAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qCAAA;AAAA,IACA,qEAAA;AAAA,IACA;AAAC,GAEF,CAAA,MAAA;AAAA,IACC,oBAAA;AAAA,IACA,6FAAA;AAAA,IACA;AAAA,GAED,CAAA,KAAA,CAAM,OAAO,CAAA,CACb,OAAO,IAAK,CAAA,MAAM,oDAAO,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AAA,EAAa,CAAW,OAAA,KAAA;AAC5B,IACE,IAAA,OAAA,CAAQ,MAAO,CAAA,cAAA,KAAmB,yBAClC,CAAC,OAAA,CAAQ,IAAK,EAAA,CAAE,oBAChB,EAAA;AACA,MAAQ,OAAA,CAAA,KAAA;AAAA,QACN;AAAA,OACF;AAAA;AACF,GACD,CAAA,CACA,MAAO,CAAA,IAAA,CAAK,MAAM,oDAAO,sBAAe,KAAA,CAAE,IAAK,CAAA,CAAA,CAAA,KAAK,CAAE,CAAA,OAAO,CAAC,CAAC,CAAA;AACpE;AAIA,SAAS,KACP,aACoC,EAAA;AACpC,EAAA,OAAO,UAAU,IAAgB,KAAA;AAC/B,IAAI,IAAA;AACF,MAAM,MAAA,UAAA,GAAa,MAAM,aAAc,EAAA;AACvC,MAAM,MAAA,UAAA,CAAW,GAAG,IAAI,CAAA;AACxB,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,aACP,KAAO,EAAA;AAEd,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAM,OAAO,CAAA;AAC3B,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAChB,GACF;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/commands/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\nconst defaultPreviewAppPort = '3000';\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .option(\n '--defaultPlugin [defaultPlugins...]',\n 'Plugins which should be added automatically to the mkdocs.yaml file',\n [],\n )\n .option(\n '--runAsDefaultUser',\n 'Bypass setting the container user as the same user and group id as host for Linux and MacOS',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate'), 'default'));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate'), 'default'));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsProxy <HTTPS Proxy>',\n 'Optional Proxy to use for AWS requests.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath <AWS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--awsMaxAttempts <AWS MAX ATTEMPTS>',\n 'Optional maximum number of retries for AWS S3 operations. If not specified, default value of 3 is used.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath <GCS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish'), 'default'));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs'), 'default'));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--preview-app-bundle-path <PATH_TO_BUNDLE>',\n 'Preview documentation using another web app',\n )\n .option(\n '--preview-app-port <PORT>',\n 'Port for the preview app to be served on',\n defaultPreviewAppPort,\n )\n .option(\n '-c, --mkdocs-config-file-name <FILENAME>',\n 'Mkdocs config file name',\n )\n .option(\n '--mkdocs-parameter-clean',\n 'Pass \"--clean\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-dirtyreload',\n 'Pass \"--dirtyreload\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-strict',\n 'Pass \"--strict\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .hook('preAction', command => {\n if (\n command.opts().previewAppPort !== defaultPreviewAppPort &&\n !command.opts().previewAppBundlePath\n ) {\n command.error(\n '--preview-app-port can only be used together with --preview-app-bundle-path',\n );\n }\n })\n .action(lazy(() => import('./serve/serve'), 'default'));\n}\n\n// Humbly taken from backstage-cli's registerCommands\ntype ActionFunc = (...args: any[]) => Promise<void>;\ntype ActionExports<TModule extends object> = {\n [KName in keyof TModule as TModule[KName] extends ActionFunc\n ? KName\n : never]: TModule[KName];\n};\n\n// Wraps an action function so that it always exits and handles errors\nexport function lazy<TModule extends object>(\n moduleLoader: () => Promise<TModule>,\n exportName: keyof ActionExports<TModule>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const mod = await moduleLoader();\n const actualModule = (\n mod as unknown as { default: ActionExports<TModule> }\n ).default;\n const actionFunc = actualModule[exportName] as ActionFunc;\n await actionFunc(...args);\n\n process.exit(0);\n } catch (error) {\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n"],"names":["TechdocsGenerator"],"mappings":";;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA;AAC7C,MAAM,qBAAwB,GAAA,MAAA;AAEvB,SAAS,iBAAiB,OAAkB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,IAAA;AACF,MAAM,MAAA,GAAA,GAAM,MAAM,YAAa,EAAA;AAC/B,MAAA,MAAM,eACJ,GACA,CAAA,OAAA;AACF,MAAM,MAAA,UAAA,GAAa,aAAa,UAAU,CAAA;AAC1C,MAAM,MAAA,UAAA,CAAW,GAAG,IAAI,CAAA;AAExB,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,aACP,KAAO,EAAA;AACd,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAM,OAAO,CAAA;AAC3B,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAChB,GACF;AACF;;;;;"}
|
|
@@ -1485,6 +1485,236 @@
|
|
|
1485
1485
|
},
|
|
1486
1486
|
"packageName": "@backstage/core-components"
|
|
1487
1487
|
},
|
|
1488
|
+
{
|
|
1489
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/core-app-api/config.d.ts",
|
|
1490
|
+
"value": {
|
|
1491
|
+
"type": "object",
|
|
1492
|
+
"properties": {
|
|
1493
|
+
"app": {
|
|
1494
|
+
"description": "Generic frontend configuration.",
|
|
1495
|
+
"type": "object",
|
|
1496
|
+
"properties": {
|
|
1497
|
+
"baseUrl": {
|
|
1498
|
+
"description": "The public absolute root URL that the frontend.",
|
|
1499
|
+
"visibility": "frontend",
|
|
1500
|
+
"type": "string"
|
|
1501
|
+
},
|
|
1502
|
+
"title": {
|
|
1503
|
+
"description": "The title of the app, as shown in the Backstage web interface.",
|
|
1504
|
+
"visibility": "frontend",
|
|
1505
|
+
"type": "string"
|
|
1506
|
+
},
|
|
1507
|
+
"support": {
|
|
1508
|
+
"description": "Information about support of this Backstage instance and how to contact the integrator team.",
|
|
1509
|
+
"type": "object",
|
|
1510
|
+
"properties": {
|
|
1511
|
+
"url": {
|
|
1512
|
+
"description": "The primary support url.",
|
|
1513
|
+
"visibility": "frontend",
|
|
1514
|
+
"type": "string"
|
|
1515
|
+
},
|
|
1516
|
+
"items": {
|
|
1517
|
+
"description": "A list of categorized support item groupings.",
|
|
1518
|
+
"type": "array",
|
|
1519
|
+
"items": {
|
|
1520
|
+
"type": "object",
|
|
1521
|
+
"properties": {
|
|
1522
|
+
"title": {
|
|
1523
|
+
"description": "The title of the support item grouping.",
|
|
1524
|
+
"visibility": "frontend",
|
|
1525
|
+
"type": "string"
|
|
1526
|
+
},
|
|
1527
|
+
"icon": {
|
|
1528
|
+
"description": "An optional icon for the support item grouping.",
|
|
1529
|
+
"visibility": "frontend",
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
},
|
|
1532
|
+
"links": {
|
|
1533
|
+
"description": "A list of support links for the Backstage instance inside this grouping.",
|
|
1534
|
+
"type": "array",
|
|
1535
|
+
"items": {
|
|
1536
|
+
"type": "object",
|
|
1537
|
+
"properties": {
|
|
1538
|
+
"url": {
|
|
1539
|
+
"visibility": "frontend",
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
"title": {
|
|
1543
|
+
"visibility": "frontend",
|
|
1544
|
+
"type": "string"
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
"required": [
|
|
1548
|
+
"url"
|
|
1549
|
+
]
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
},
|
|
1553
|
+
"required": [
|
|
1554
|
+
"links",
|
|
1555
|
+
"title"
|
|
1556
|
+
]
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
},
|
|
1560
|
+
"required": [
|
|
1561
|
+
"items",
|
|
1562
|
+
"url"
|
|
1563
|
+
]
|
|
1564
|
+
},
|
|
1565
|
+
"routes": {
|
|
1566
|
+
"type": "object",
|
|
1567
|
+
"properties": {
|
|
1568
|
+
"bindings": {
|
|
1569
|
+
"description": "Maps external route references to regular route references. Both the\nkey and the value is expected to be on the form `<pluginId>.<routeId>`.\nIf the value is `false`, the route will be disabled even if it has a\ndefault mapping.",
|
|
1570
|
+
"deepVisibility": "frontend",
|
|
1571
|
+
"type": "object",
|
|
1572
|
+
"additionalProperties": {
|
|
1573
|
+
"anyOf": [
|
|
1574
|
+
{
|
|
1575
|
+
"const": false,
|
|
1576
|
+
"type": "boolean"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"type": "string"
|
|
1580
|
+
}
|
|
1581
|
+
]
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"required": [
|
|
1588
|
+
"baseUrl"
|
|
1589
|
+
]
|
|
1590
|
+
},
|
|
1591
|
+
"backend": {
|
|
1592
|
+
"description": "Generic backend configuration.",
|
|
1593
|
+
"type": "object",
|
|
1594
|
+
"properties": {
|
|
1595
|
+
"baseUrl": {
|
|
1596
|
+
"description": "The public absolute root URL that the backend is reachable at, from the browser's perspective.",
|
|
1597
|
+
"visibility": "frontend",
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": [
|
|
1602
|
+
"baseUrl"
|
|
1603
|
+
]
|
|
1604
|
+
},
|
|
1605
|
+
"organization": {
|
|
1606
|
+
"description": "Configuration that provides information about the organization that the app is for.",
|
|
1607
|
+
"type": "object",
|
|
1608
|
+
"properties": {
|
|
1609
|
+
"name": {
|
|
1610
|
+
"description": "The name of the organization that the app belongs to.",
|
|
1611
|
+
"visibility": "frontend",
|
|
1612
|
+
"type": "string"
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
"homepage": {
|
|
1617
|
+
"description": "This config was used by the HomepageTimer but has been replaced by the HeaderWorldClock in the home plugin",
|
|
1618
|
+
"deprecated": "in favor of the HeaderWorldClock which is found in the home plugin",
|
|
1619
|
+
"type": "object",
|
|
1620
|
+
"properties": {
|
|
1621
|
+
"clocks": {
|
|
1622
|
+
"type": "array",
|
|
1623
|
+
"items": {
|
|
1624
|
+
"type": "object",
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"label": {
|
|
1627
|
+
"visibility": "frontend",
|
|
1628
|
+
"type": "string"
|
|
1629
|
+
},
|
|
1630
|
+
"timezone": {
|
|
1631
|
+
"visibility": "frontend",
|
|
1632
|
+
"type": "string"
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
"required": [
|
|
1636
|
+
"label",
|
|
1637
|
+
"timezone"
|
|
1638
|
+
]
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
"auth": {
|
|
1644
|
+
"description": "Configuration that provides information on available configured authentication providers.",
|
|
1645
|
+
"type": "object",
|
|
1646
|
+
"properties": {
|
|
1647
|
+
"environment": {
|
|
1648
|
+
"description": "The 'environment' attribute added as an optional parameter to have configurable environment value for `auth.providers`.\ndefault value: 'development'\noptional values: 'development' | 'production'",
|
|
1649
|
+
"visibility": "frontend",
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
},
|
|
1654
|
+
"enableExperimentalRedirectFlow": {
|
|
1655
|
+
"description": "Enable redirect authentication flow type, instead of a popup for authentication.",
|
|
1656
|
+
"visibility": "frontend",
|
|
1657
|
+
"type": "boolean"
|
|
1658
|
+
},
|
|
1659
|
+
"discovery": {
|
|
1660
|
+
"description": "Discovery options.",
|
|
1661
|
+
"visibility": "frontend",
|
|
1662
|
+
"type": "object",
|
|
1663
|
+
"properties": {
|
|
1664
|
+
"endpoints": {
|
|
1665
|
+
"description": "Endpoints\n\nA list of target baseUrls and the associated plugins.",
|
|
1666
|
+
"visibility": "frontend",
|
|
1667
|
+
"type": "array",
|
|
1668
|
+
"items": {
|
|
1669
|
+
"type": "object",
|
|
1670
|
+
"properties": {
|
|
1671
|
+
"target": {
|
|
1672
|
+
"description": "The target baseUrl to use for the plugin\n\nCan be either a string or an object with internal and external keys. (Internal is used for the backend, external for the frontend)\nTargets with `{{pluginId}}` or `{{ pluginId }} in the url will be replaced with the pluginId.",
|
|
1673
|
+
"visibility": "frontend",
|
|
1674
|
+
"anyOf": [
|
|
1675
|
+
{
|
|
1676
|
+
"type": "object",
|
|
1677
|
+
"properties": {
|
|
1678
|
+
"external": {
|
|
1679
|
+
"visibility": "frontend",
|
|
1680
|
+
"type": "string"
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
"required": [
|
|
1684
|
+
"external"
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"type": "string"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1692
|
+
"plugins": {
|
|
1693
|
+
"description": "Array of plugins which use the target baseUrl.",
|
|
1694
|
+
"visibility": "frontend",
|
|
1695
|
+
"type": "array",
|
|
1696
|
+
"items": {
|
|
1697
|
+
"type": "string"
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
},
|
|
1701
|
+
"required": [
|
|
1702
|
+
"plugins",
|
|
1703
|
+
"target"
|
|
1704
|
+
]
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
},
|
|
1710
|
+
"required": [
|
|
1711
|
+
"app",
|
|
1712
|
+
"backend"
|
|
1713
|
+
],
|
|
1714
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1715
|
+
},
|
|
1716
|
+
"packageName": "@backstage/core-app-api"
|
|
1717
|
+
},
|
|
1488
1718
|
{
|
|
1489
1719
|
"path": "../../node_modules/@oriflame/backstage-plugin-score-card/node_modules/@backstage/core-components/config.d.ts",
|
|
1490
1720
|
"value": {
|
|
@@ -3980,6 +4210,52 @@
|
|
|
3980
4210
|
},
|
|
3981
4211
|
"packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
|
|
3982
4212
|
},
|
|
4213
|
+
{
|
|
4214
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/plugin-catalog-react/node_modules/@backstage/core-components/config.d.ts",
|
|
4215
|
+
"value": {
|
|
4216
|
+
"type": "object",
|
|
4217
|
+
"properties": {
|
|
4218
|
+
"auth": {
|
|
4219
|
+
"type": "object",
|
|
4220
|
+
"properties": {
|
|
4221
|
+
"autologout": {
|
|
4222
|
+
"description": "Autologout feature configuration",
|
|
4223
|
+
"type": "object",
|
|
4224
|
+
"properties": {
|
|
4225
|
+
"enabled": {
|
|
4226
|
+
"description": "Enable or disable the autologout feature",
|
|
4227
|
+
"visibility": "frontend",
|
|
4228
|
+
"type": "boolean"
|
|
4229
|
+
},
|
|
4230
|
+
"idleTimeoutMinutes": {
|
|
4231
|
+
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
4232
|
+
"visibility": "frontend",
|
|
4233
|
+
"type": "number"
|
|
4234
|
+
},
|
|
4235
|
+
"promptBeforeIdleSeconds": {
|
|
4236
|
+
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
4237
|
+
"visibility": "frontend",
|
|
4238
|
+
"type": "number"
|
|
4239
|
+
},
|
|
4240
|
+
"useWorkerTimers": {
|
|
4241
|
+
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
4242
|
+
"visibility": "frontend",
|
|
4243
|
+
"type": "boolean"
|
|
4244
|
+
},
|
|
4245
|
+
"logoutIfDisconnected": {
|
|
4246
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
4247
|
+
"visibility": "frontend",
|
|
4248
|
+
"type": "boolean"
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4256
|
+
},
|
|
4257
|
+
"packageName": "@backstage/core-components"
|
|
4258
|
+
},
|
|
3983
4259
|
{
|
|
3984
4260
|
"path": "../integration-aws-node/config.d.ts",
|
|
3985
4261
|
"value": {
|
|
@@ -4089,6 +4365,138 @@
|
|
|
4089
4365
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4090
4366
|
},
|
|
4091
4367
|
"packageName": "@backstage/integration-aws-node"
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
|
|
4371
|
+
"value": {
|
|
4372
|
+
"type": "object",
|
|
4373
|
+
"properties": {
|
|
4374
|
+
"backend": {
|
|
4375
|
+
"type": "object",
|
|
4376
|
+
"properties": {
|
|
4377
|
+
"workingDirectory": {
|
|
4378
|
+
"description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
|
|
4379
|
+
"type": "string"
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4384
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4385
|
+
},
|
|
4386
|
+
"packageName": "@backstage/backend-plugin-api"
|
|
4387
|
+
},
|
|
4388
|
+
{
|
|
4389
|
+
"path": "../../node_modules/@backstage-community/plugin-puppetdb/node_modules/@backstage/frontend-app-api/config.d.ts",
|
|
4390
|
+
"value": {
|
|
4391
|
+
"type": "object",
|
|
4392
|
+
"properties": {
|
|
4393
|
+
"app": {
|
|
4394
|
+
"type": "object",
|
|
4395
|
+
"properties": {
|
|
4396
|
+
"experimental": {
|
|
4397
|
+
"type": "object",
|
|
4398
|
+
"properties": {
|
|
4399
|
+
"packages": {
|
|
4400
|
+
"visibility": "frontend",
|
|
4401
|
+
"deepVisibility": "frontend",
|
|
4402
|
+
"anyOf": [
|
|
4403
|
+
{
|
|
4404
|
+
"type": "object",
|
|
4405
|
+
"properties": {
|
|
4406
|
+
"include": {
|
|
4407
|
+
"type": "array",
|
|
4408
|
+
"items": {
|
|
4409
|
+
"type": "string"
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
"exclude": {
|
|
4413
|
+
"type": "array",
|
|
4414
|
+
"items": {
|
|
4415
|
+
"type": "string"
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
}
|
|
4419
|
+
},
|
|
4420
|
+
{
|
|
4421
|
+
"const": "all",
|
|
4422
|
+
"type": "string"
|
|
4423
|
+
}
|
|
4424
|
+
]
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
},
|
|
4428
|
+
"routes": {
|
|
4429
|
+
"type": "object",
|
|
4430
|
+
"properties": {
|
|
4431
|
+
"bindings": {
|
|
4432
|
+
"description": "Maps external route references to regular route references. Both the\nkey and the value is expected to be on the form `<pluginId>.<routeId>`.\nIf the value is `false`, the route will be disabled even if it has a\ndefault mapping.",
|
|
4433
|
+
"deepVisibility": "frontend",
|
|
4434
|
+
"type": "object",
|
|
4435
|
+
"additionalProperties": {
|
|
4436
|
+
"anyOf": [
|
|
4437
|
+
{
|
|
4438
|
+
"const": false,
|
|
4439
|
+
"type": "boolean"
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"type": "string"
|
|
4443
|
+
}
|
|
4444
|
+
]
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
},
|
|
4449
|
+
"extensions": {
|
|
4450
|
+
"deepVisibility": "frontend",
|
|
4451
|
+
"type": "array",
|
|
4452
|
+
"items": {
|
|
4453
|
+
"anyOf": [
|
|
4454
|
+
{
|
|
4455
|
+
"type": "object",
|
|
4456
|
+
"additionalProperties": {
|
|
4457
|
+
"anyOf": [
|
|
4458
|
+
{
|
|
4459
|
+
"type": "object",
|
|
4460
|
+
"properties": {
|
|
4461
|
+
"attachTo": {
|
|
4462
|
+
"type": "object",
|
|
4463
|
+
"properties": {
|
|
4464
|
+
"id": {
|
|
4465
|
+
"type": "string"
|
|
4466
|
+
},
|
|
4467
|
+
"input": {
|
|
4468
|
+
"type": "string"
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
"required": [
|
|
4472
|
+
"id",
|
|
4473
|
+
"input"
|
|
4474
|
+
]
|
|
4475
|
+
},
|
|
4476
|
+
"disabled": {
|
|
4477
|
+
"type": "boolean"
|
|
4478
|
+
},
|
|
4479
|
+
"config": {}
|
|
4480
|
+
}
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
"type": "boolean"
|
|
4484
|
+
}
|
|
4485
|
+
]
|
|
4486
|
+
}
|
|
4487
|
+
},
|
|
4488
|
+
{
|
|
4489
|
+
"type": "string"
|
|
4490
|
+
}
|
|
4491
|
+
]
|
|
4492
|
+
}
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
},
|
|
4497
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
4498
|
+
},
|
|
4499
|
+
"packageName": "@backstage/frontend-app-api"
|
|
4092
4500
|
}
|
|
4093
4501
|
],
|
|
4094
4502
|
"backstageConfigSchemaVersion": 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.5b071983.js"></script><script defer="defer" src="/static/module-material-ui.b24ef3a3.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.d6e8d890.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ae6d33c5.js"></script><script defer="defer" src="/static/vendor.5b071983.js"></script><script defer="defer" src="/static/main.5b071983.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|