From d92ff9083a0c357be0865f8eec6612d73839f376 Mon Sep 17 00:00:00 2001 From: Oseer Williams Date: Thu, 19 Sep 2024 11:45:57 -0400 Subject: [PATCH] fix(ai-unlimited): fixing incorrect redirect URL --- generate-redirects.js | 19 +++++++++++++++++++ ...ai-unlimited-aws-permissions-policies.html | 9 +++++++++ .../ai-unlimited-magic-reference.html | 9 +++++++++ ...eploy-ai-unlimited-aws-cloudformation.html | 9 +++++++++ ...oy-ai-unlimited-awscli-cloudformation.html | 9 +++++++++ .../getting-started-with-ai-unlimited.html | 9 +++++++++ ...install-ai-unlimited-interface-docker.html | 9 +++++++++ ...nstall-ai-unlimited-workspaces-docker.html | 9 +++++++++ .../running-sample-ai-unlimited-workload.html | 9 +++++++++ .../using-ai-unlimited-workspace-cli.html | 9 +++++++++ ...ai-unlimited-aws-permissions-policies.html | 9 +++++++++ .../ai-unlimited-magic-reference.html | 9 +++++++++ ...eploy-ai-unlimited-aws-cloudformation.html | 9 +++++++++ ...oy-ai-unlimited-awscli-cloudformation.html | 9 +++++++++ .../getting-started-with-ai-unlimited.html | 9 +++++++++ ...install-ai-unlimited-interface-docker.html | 9 +++++++++ ...nstall-ai-unlimited-workspaces-docker.html | 9 +++++++++ .../running-sample-ai-unlimited-workload.html | 9 +++++++++ .../using-ai-unlimited-workspace-cli.html | 9 +++++++++ supplemental_ui/js/redirect.js | 13 ------------- supplemental_ui/partials/head-meta.hbs | 1 - 21 files changed, 181 insertions(+), 14 deletions(-) create mode 100644 static/ai-unlimited/ai-unlimited-aws-permissions-policies.html create mode 100644 static/ai-unlimited/ai-unlimited-magic-reference.html create mode 100644 static/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html create mode 100644 static/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html create mode 100644 static/ai-unlimited/getting-started-with-ai-unlimited.html create mode 100644 static/ai-unlimited/install-ai-unlimited-interface-docker.html create mode 100644 static/ai-unlimited/install-ai-unlimited-workspaces-docker.html create mode 100644 static/ai-unlimited/running-sample-ai-unlimited-workload.html create mode 100644 static/ai-unlimited/using-ai-unlimited-workspace-cli.html create mode 100644 static/ja/ai-unlimited/ai-unlimited-aws-permissions-policies.html create mode 100644 static/ja/ai-unlimited/ai-unlimited-magic-reference.html create mode 100644 static/ja/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html create mode 100644 static/ja/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html create mode 100644 static/ja/ai-unlimited/getting-started-with-ai-unlimited.html create mode 100644 static/ja/ai-unlimited/install-ai-unlimited-interface-docker.html create mode 100644 static/ja/ai-unlimited/install-ai-unlimited-workspaces-docker.html create mode 100644 static/ja/ai-unlimited/running-sample-ai-unlimited-workload.html create mode 100644 static/ja/ai-unlimited/using-ai-unlimited-workspace-cli.html delete mode 100644 supplemental_ui/js/redirect.js diff --git a/generate-redirects.js b/generate-redirects.js index 21b17271e..bf487818d 100644 --- a/generate-redirects.js +++ b/generate-redirects.js @@ -101,6 +101,25 @@ const data = { "/quickstarts/vantagecloud-lake/vantagecloud-lake-demo-jupyter-google-cloud-vertex-ai/", "vantagecloud-lake/vantagecloud-lake-demo-jupyter-azure.html": "/quickstarts/vantagecloud-lake/vantagecloud-lake-demo-jupyter-azure/", + // AI Unlimited redirects + "ai-unlimited/ai-unlimited-aws-permissions-policies.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/ai-unlimited-magic-reference.html": + "/ai-unlimited/explore-and-analyze-data/magic-commands/", + "ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/getting-started-with-ai-unlimited.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/install-ai-unlimited-interface-docker.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/install-ai-unlimited-workspaces-docker.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/running-sample-ai-unlimited-workload.html": + "/ai-unlimited/install-ai-unlimited/", + "ai-unlimited/using-ai-unlimited-workspace-cli.html": + "/ai-unlimited/install-ai-unlimited/", }; // Template generator function diff --git a/static/ai-unlimited/ai-unlimited-aws-permissions-policies.html b/static/ai-unlimited/ai-unlimited-aws-permissions-policies.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/ai-unlimited-aws-permissions-policies.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/ai-unlimited-magic-reference.html b/static/ai-unlimited/ai-unlimited-magic-reference.html new file mode 100644 index 000000000..4373f9a4b --- /dev/null +++ b/static/ai-unlimited/ai-unlimited-magic-reference.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/explore-and-analyze-data/magic-commands/.

\ No newline at end of file diff --git a/static/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html b/static/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html b/static/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/getting-started-with-ai-unlimited.html b/static/ai-unlimited/getting-started-with-ai-unlimited.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/getting-started-with-ai-unlimited.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/install-ai-unlimited-interface-docker.html b/static/ai-unlimited/install-ai-unlimited-interface-docker.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/install-ai-unlimited-interface-docker.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/install-ai-unlimited-workspaces-docker.html b/static/ai-unlimited/install-ai-unlimited-workspaces-docker.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/install-ai-unlimited-workspaces-docker.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/running-sample-ai-unlimited-workload.html b/static/ai-unlimited/running-sample-ai-unlimited-workload.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/running-sample-ai-unlimited-workload.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ai-unlimited/using-ai-unlimited-workspace-cli.html b/static/ai-unlimited/using-ai-unlimited-workspace-cli.html new file mode 100644 index 000000000..ca04f802d --- /dev/null +++ b/static/ai-unlimited/using-ai-unlimited-workspace-cli.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/ai-unlimited-aws-permissions-policies.html b/static/ja/ai-unlimited/ai-unlimited-aws-permissions-policies.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/ai-unlimited-aws-permissions-policies.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/ai-unlimited-magic-reference.html b/static/ja/ai-unlimited/ai-unlimited-magic-reference.html new file mode 100644 index 000000000..aa491e4a7 --- /dev/null +++ b/static/ja/ai-unlimited/ai-unlimited-magic-reference.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/explore-and-analyze-data/magic-commands/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html b/static/ja/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/deploy-ai-unlimited-aws-cloudformation.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html b/static/ja/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/deploy-ai-unlimited-awscli-cloudformation.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/getting-started-with-ai-unlimited.html b/static/ja/ai-unlimited/getting-started-with-ai-unlimited.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/getting-started-with-ai-unlimited.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/install-ai-unlimited-interface-docker.html b/static/ja/ai-unlimited/install-ai-unlimited-interface-docker.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/install-ai-unlimited-interface-docker.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/install-ai-unlimited-workspaces-docker.html b/static/ja/ai-unlimited/install-ai-unlimited-workspaces-docker.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/install-ai-unlimited-workspaces-docker.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/running-sample-ai-unlimited-workload.html b/static/ja/ai-unlimited/running-sample-ai-unlimited-workload.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/running-sample-ai-unlimited-workload.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/static/ja/ai-unlimited/using-ai-unlimited-workspace-cli.html b/static/ja/ai-unlimited/using-ai-unlimited-workspace-cli.html new file mode 100644 index 000000000..73eeef9d3 --- /dev/null +++ b/static/ja/ai-unlimited/using-ai-unlimited-workspace-cli.html @@ -0,0 +1,9 @@ + + + + + + +Redirect Notice +

Redirect Notice

+

The page you requested has been relocated to https://developers.teradata.com/ja/ai-unlimited/install-ai-unlimited/.

\ No newline at end of file diff --git a/supplemental_ui/js/redirect.js b/supplemental_ui/js/redirect.js deleted file mode 100644 index 150d866b3..000000000 --- a/supplemental_ui/js/redirect.js +++ /dev/null @@ -1,13 +0,0 @@ -window.addEventListener('load', function() { - var folder = window.location.pathname.split("/"); - console.log(folder[folder.length-2]); - - if (folder[folder.length-2] === 'ai-unlimited') { - var metaTag = document.createElement('meta'); - metaTag.setAttribute('http-equiv', 'refresh'); - metaTag.setAttribute('content', '5;url=https://teradata.github.io/ai-unlimited-docs/docs/install-ai-unlimited/'); - document.head.appendChild(metaTag); - - window.location.href = 'https://teradata.github.io/ai-unlimited-docs/docs/install-ai-unlimited/'; - } -}); \ No newline at end of file diff --git a/supplemental_ui/partials/head-meta.hbs b/supplemental_ui/partials/head-meta.hbs index eb555c0c1..0a18f5360 100644 --- a/supplemental_ui/partials/head-meta.hbs +++ b/supplemental_ui/partials/head-meta.hbs @@ -938,4 +938,3 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - \ No newline at end of file