From 549ca5e3c4e50fa6f81155d12125d26cd9e91cc7 Mon Sep 17 00:00:00 2001 From: hainenber Date: Sun, 19 Nov 2023 16:40:45 +0700 Subject: [PATCH] fix(pkg/techdocs-cli): specify new opt Signed-off-by: hainenber --- docs/features/techdocs/cli.md | 1 + packages/techdocs-cli/src/commands/index.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/features/techdocs/cli.md b/docs/features/techdocs/cli.md index 9704b9b21b..6a2407372f 100644 --- a/docs/features/techdocs/cli.md +++ b/docs/features/techdocs/cli.md @@ -91,6 +91,7 @@ Options: --docker-option Extra options to pass to the docker run command, e.g. "--add-host=internal.host:192.168.11.12" (can be added multiple times). --no-docker Do not use Docker, use MkDocs executable in current user environment. + --mkdocs-configs Extra mkdocs server to pass to mkdocs running in containerized 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. diff --git a/packages/techdocs-cli/src/commands/index.ts b/packages/techdocs-cli/src/commands/index.ts index 10a00da513..3052575366 100644 --- a/packages/techdocs-cli/src/commands/index.ts +++ b/packages/techdocs-cli/src/commands/index.ts @@ -289,6 +289,10 @@ export function registerCommands(program: Command) { '-c, --mkdocs-config-file-name ', 'Mkdocs config file name', ) + .option( + '--mkdocs-configs', + 'Additional parameters to pass to containerized mkdocs', + ) .hook('preAction', command => { if ( command.opts().previewAppPort !== defaultPreviewAppPort &&