Skip to content

Commit 4b6043b

Browse files
committed
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.
1 parent 9e613e8 commit 4b6043b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

utils/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class Constants {
2727
static readonly TEMPLATE_STRINGS_OPTION = 'templateStrings';
2828
static readonly INCLUDE_VERSIONS_OPTION = 'versioning';
2929
static readonly PRODUCT_OPTION = 'product';
30+
static readonly CONFIG_OPTION = 'config';
3031

3132
static readonly GLOBAL_FUNCS_FILE_NAME = 'globalFunctions';
3233
}

utils/options.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ export function pluginOptions(options: Pick<Options, "addDeclaration">) {
5555
name: Constants.PRODUCT_OPTION,
5656
help: 'Specify product name.'
5757
});
58+
59+
options.addDeclaration({
60+
name: Constants.CONFIG_OPTION,
61+
help: 'Specify config json file name to use for url configurations.'
62+
});
5863
}

0 commit comments

Comments
 (0)