Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a webconfig for each of the web component product's endpoints. Ad… #21

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/utils/lib.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,14 @@ export function stringify(data: unknown) {
}

export function getConfigData(context: DefaultThemeRenderContext, prop: string, lang?: string): string {
const configOption = context.options.getValue('config') as string;
const product = context.options.getValue('product') as string;
const prodArr = product.split('-');
const prodName = prodArr[prodArr.length - 1];
const fileName = prodName == 'angular' ? 'config.json' : prodName + '.config.json';
let fileName = prodName == 'angular' ? 'config.json' : prodName + '.config.json';
if (configOption && configOption !== "") {
fileName = configOption;
}
const filePath = getConfigFilePath(fileName);

const config = JSON.parse(fs.readFileSync(filePath, 'utf8'));
Expand Down
42 changes: 42 additions & 0 deletions webcomponents.dockmanager.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"en": {
"development": {
"url": "https://dev.infragistics.local",
"gaID": "GTM-WLXLBZD",
"versions": "https://staging.infragistics.local/dock-manager/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/dock-manager/docs/typescript/"
},
"staging": {
"url": "https://staging.infragistics.local",
"gaID": "GTM-NCKNPN",
"versions": "https://staging.infragistics.local/dock-manager/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/dock-manager/docs/typescript/"
},
"production": {
"url": "https://www.infragistics.com",
"gaID": "GTM-T65CF7",
"versions": "https://www.infragistics.com/dock-manager/docs/webcomponents-api-docs-versions-prod.json",
"typedoc_default_url": "https://www.infragistics.com/products/dock-manager/docs/typescript/"
}
},
"jp": {
"development": {
"url": "https://jp.dev.infragistics.local",
"gaID": "GTM-NNHVMC7",
"versions": "https://jp.staging.infragistics.local/dock-manager/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/dock-manager/docs/typescript/"
},
"staging": {
"url": "https://jp.staging.infragistics.local",
"gaID": "GTM-WLWSDK",
"versions": "https://jp.staging.infragistics.local/dock-manager/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/dock-manager/docs/typescript/"
},
"production": {
"url": "https://jp.infragistics.com",
"gaID": "GTM-KVNSWJ",
"versions": "https://jp.infragistics.com/dock-manager/docs/webcomponents-api-docs-versions-prod-jp.json",
"typedoc_default_url": "https://jp.infragistics.com/products/dock-manager/docs/typescript/"
}
}
}
42 changes: 42 additions & 0 deletions webcomponents.licensed.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"en": {
"development": {
"url": "https://dev.infragistics.local",
"gaID": "GTM-WLXLBZD",
"versions": "https://staging.infragistics.local/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/ignite-ui-web-components/api/docs/typescript/"
},
"staging": {
"url": "https://staging.infragistics.local",
"gaID": "GTM-NCKNPN",
"versions": "https://staging.infragistics.local/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/ignite-ui-web-components/api/docs/typescript/"
},
"production": {
"url": "https://www.infragistics.com",
"gaID": "GTM-T65CF7",
"versions": "https://www.infragistics.com/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions-prod.json",
"typedoc_default_url": "https://www.infragistics.com/products/ignite-ui-web-components/api/docs/typescript/"
}
},
"jp": {
"development": {
"url": "https://jp.dev.infragistics.local",
"gaID": "GTM-NNHVMC7",
"versions": "https://jp.staging.infragistics.local/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/ignite-ui-web-components/api/docs/typescript/"
},
"staging": {
"url": "https://jp.staging.infragistics.local",
"gaID": "GTM-WLWSDK",
"versions": "https://jp.staging.infragistics.local/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/ignite-ui-web-components/api/docs/typescript/"
},
"production": {
"url": "https://jp.infragistics.com",
"gaID": "GTM-KVNSWJ",
"versions": "https://jp.infragistics.com/ignite-ui-web-components/api/docs/webcomponents-api-docs-versions-prod-jp.json",
"typedoc_default_url": "https://jp.infragistics.com/products/ignite-ui-web-components/api/docs/typescript/"
}
}
}
42 changes: 42 additions & 0 deletions webcomponents.oss.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"en": {
"development": {
"url": "https://dev.infragistics.local",
"gaID": "GTM-WLXLBZD",
"versions": "https://staging.infragistics.local/ignite-ui-web-components/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/ignite-ui-web-components/docs/typescript/"
},
"staging": {
"url": "https://staging.infragistics.local",
"gaID": "GTM-NCKNPN",
"versions": "https://staging.infragistics.local/ignite-ui-web-components/docs/webcomponents-api-docs-versions.json",
"typedoc_default_url": "https://staging.infragistics.local/products/ignite-ui-web-components/docs/typescript/"
},
"production": {
"url": "https://www.infragistics.com",
"gaID": "GTM-T65CF7",
"versions": "https://www.infragistics.com/ignite-ui-web-components/docs/webcomponents-api-docs-versions-prod.json",
"typedoc_default_url": "https://www.infragistics.com/products/ignite-ui-web-components/docs/typescript/"
}
},
"jp": {
"development": {
"url": "https://jp.dev.infragistics.local",
"gaID": "GTM-NNHVMC7",
"versions": "https://jp.staging.infragistics.local/ignite-ui-web-components/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/ignite-ui-web-components/docs/typescript/"
},
"staging": {
"url": "https://jp.staging.infragistics.local",
"gaID": "GTM-WLWSDK",
"versions": "https://jp.staging.infragistics.local/ignite-ui-web-components/docs/webcomponents-api-docs-versions-jp.json",
"typedoc_default_url": "https://jp.staging.infragistics.local/products/ignite-ui-web-components/docs/typescript/"
},
"production": {
"url": "https://jp.infragistics.com",
"gaID": "GTM-KVNSWJ",
"versions": "https://jp.infragistics.com/ignite-ui-web-components/docs/webcomponents-api-docs-versions-prod-jp.json",
"typedoc_default_url": "https://jp.infragistics.com/products/ignite-ui-web-components/docs/typescript/"
}
}
}
Loading