From 4b6043b5c8772dba17a44ba03f65f541d839bc25 Mon Sep 17 00:00:00 2001 From: Maya Kirova Date: Wed, 29 Nov 2023 17:12:34 +0200 Subject: [PATCH] Add a new config option we could use in case a single product (like webcomponents) has api docs deployed in multiple different endpoints so each needs unique config. --- utils/constants.ts | 1 + utils/options.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/utils/constants.ts b/utils/constants.ts index 507e8a8..14f6987 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -27,6 +27,7 @@ export class Constants { static readonly TEMPLATE_STRINGS_OPTION = 'templateStrings'; static readonly INCLUDE_VERSIONS_OPTION = 'versioning'; static readonly PRODUCT_OPTION = 'product'; + static readonly CONFIG_OPTION = 'config'; static readonly GLOBAL_FUNCS_FILE_NAME = 'globalFunctions'; } \ No newline at end of file diff --git a/utils/options.ts b/utils/options.ts index 4549ea6..f713f6c 100644 --- a/utils/options.ts +++ b/utils/options.ts @@ -55,4 +55,9 @@ export function pluginOptions(options: Pick) { name: Constants.PRODUCT_OPTION, help: 'Specify product name.' }); + + options.addDeclaration({ + name: Constants.CONFIG_OPTION, + help: 'Specify config json file name to use for url configurations.' + }); } \ No newline at end of file