diff --git a/.changeset/dry-camels-scream.md b/.changeset/dry-camels-scream.md index ea3a7f47b8..ea35cece7a 100644 --- a/.changeset/dry-camels-scream.md +++ b/.changeset/dry-camels-scream.md @@ -2,4 +2,4 @@ '@techdocs/cli': minor --- -Add `--preview-app-bundle-path` option to the `serve` command enabling previewing with apps other than the provided one +Add `--preview-app-bundle-path` and `--preview-app-port` options to the `serve` command enabling previewing with apps other than the provided one diff --git a/docs/features/techdocs/cli.md b/docs/features/techdocs/cli.md index 9d8d2b24d9..1c01441db3 100644 --- a/docs/features/techdocs/cli.md +++ b/docs/features/techdocs/cli.md @@ -95,6 +95,8 @@ Options: --no-docker Do not use Docker, use MkDocs executable in current user environment. --mkdocs-port Port for MkDocs server to use (default: "8000") --preview-app-bundle-path Preview documentation using a web app other than the included one. + --preview-app-port Port where the preview will be served. + Can only be used with "--preview-app-bundle-path". (default: "3000") -v --verbose Enable verbose output. (default: false) -h, --help display help for command ``` diff --git a/packages/techdocs-cli/cli-report.md b/packages/techdocs-cli/cli-report.md index ad41041dfb..ada61f2542 100644 --- a/packages/techdocs-cli/cli-report.md +++ b/packages/techdocs-cli/cli-report.md @@ -100,6 +100,7 @@ Options: --no-docker --mkdocs-port --preview-app-bundle-path + --preview-app-port -v --verbose -h, --help ``` diff --git a/packages/techdocs-cli/src/commands/serve/serve.ts b/packages/techdocs-cli/src/commands/serve/serve.ts index c99ab178f0..2aea8e4e80 100644 --- a/packages/techdocs-cli/src/commands/serve/serve.ts +++ b/packages/techdocs-cli/src/commands/serve/serve.ts @@ -117,7 +117,6 @@ export default async function serve(opts: OptionValues) { const port = isDevMode ? backstageBackendPort : opts.previewAppPort; const previewAppPath = getPreviewAppPath(opts); - console.log({ previewAppPath }); const httpServer = new HTTPServer( previewAppPath, port,