diff --git a/react.config.json b/react.config.json new file mode 100644 index 0000000..4064d8f --- /dev/null +++ b/react.config.json @@ -0,0 +1,42 @@ +{ + "en": { + "development": { + "url": "https://dev.infragistics.com", + "gaID": "GTM-WLXLBZD", + "versions": "https://staging.infragistics.com/react-docs/react-api-docs-versions.json", + "typedoc_default_url": "https://staging.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + }, + "staging": { + "url": "https://staging.infragistics.com", + "gaID": "GTM-NCKNPN", + "versions": "https://staging.infragistics.com/react-docs/react-api-docs-versions.json", + "typedoc_default_url": "https://staging.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + }, + "production": { + "url": "https://www.infragistics.com", + "gaID": "GTM-T65CF7", + "versions": "https://www.infragistics.com/react-docs/react-api-docs-versions-prod.json", + "typedoc_default_url": "https://www.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + } + }, + "jp": { + "development": { + "url": "https://jp.dev.infragistics.com", + "gaID": "GTM-NNHVMC7", + "versions": "https://jp.staging.infragistics.com/react-docs/react-api-docs-versions-jp.json", + "typedoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + }, + "staging": { + "url": "https://jp.staging.infragistics.com", + "gaID": "GTM-WLWSDK", + "versions": "https://jp.staging.infragistics.com/react-docs/react-api-docs-versions-jp.json", + "typedoc_default_url": "https://jp.staging.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + }, + "production": { + "url": "https://jp.infragistics.com", + "gaID": "GTM-KVNSWJ", + "versions": "https://jp.infragistics.com/react-docs/react-api-docs-versions-prod-jp.json", + "typedoc_default_url": "https://jp.infragistics.com/products/ignite-ui-react/api/docs/typescript/latest/" + } + } +} diff --git a/src/assets/js/src/versioning/tag-versions.req.js b/src/assets/js/src/versioning/tag-versions.req.js index 4375c3c..e52d1b9 100644 --- a/src/assets/js/src/versioning/tag-versions.req.js +++ b/src/assets/js/src/versioning/tag-versions.req.js @@ -1,7 +1,6 @@ (function () { - let baseUrl = $('body').data('base-url'); const versionsJson = $('body').data('api-versions-json'); - + const defaultUrl = $('body').data('default-url'); $.ajax({ url: versionsJson, type: "get", @@ -14,20 +13,19 @@ const select = $('#versions'); folders = folders.reverse(); - - baseUrl += "/products/ignite-ui-angular/docs/"; folders.forEach(function (f) { + const versionUrl = defaultUrl.replace("typescript/latest'", f + "/typescript") select.append($('