From 8ebc564830105a26f1f7b9294435ad57493a6ade Mon Sep 17 00:00:00 2001 From: muhammad-ahmed Date: Mon, 28 Oct 2024 16:35:11 +0800 Subject: [PATCH] ahmed/DAPI-801/fix--canonical-tag-url-update --- docs/_client-libraries/python/project-setup/index.md | 2 +- docs/_client-libraries/typescript/project-setup/index.md | 2 +- docusaurus.config.js | 4 ++-- .../current/_client-libraries/python/project-setup/index.md | 2 +- .../_client-libraries/typescript/project-setup/index.md | 2 +- src/components/SandboxIframe/utility/sandboxes.tsx | 2 +- src/configs/cms/backend.config.ts | 2 +- src/configs/cms/eventlisteners/blog.presave.ts | 2 +- src/features/Home/ClientLibraries/ClientLibraries.tsx | 2 +- .../Home/ClientLibraries/__tests__/ClientLibraries.test.tsx | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/_client-libraries/python/project-setup/index.md b/docs/_client-libraries/python/project-setup/index.md index e232a540e..272db9ba6 100644 --- a/docs/_client-libraries/python/project-setup/index.md +++ b/docs/_client-libraries/python/project-setup/index.md @@ -4,7 +4,7 @@ sidebar_label: Setup sidebar_position: 0 --- -Please check the library documentations [here](https://binary-com.github.io/python-deriv-api/) +Please check the library documentations [here](https://deriv-com.github.io/python-deriv-api/) :::caution We're gonna update these pages in the future when we have content for them diff --git a/docs/_client-libraries/typescript/project-setup/index.md b/docs/_client-libraries/typescript/project-setup/index.md index 85f2ea6ce..4a2beda77 100644 --- a/docs/_client-libraries/typescript/project-setup/index.md +++ b/docs/_client-libraries/typescript/project-setup/index.md @@ -4,7 +4,7 @@ sidebar_label: Setup sidebar_position: 0 --- -Please check the library documentations [here](https://binary-com.github.io/deriv-api/) +Please check the library documentations [here](https://deriv-com.github.io/deriv-api/) :::caution We're gonna update these pages in the future when we have content for them diff --git a/docusaurus.config.js b/docusaurus.config.js index e0c505279..fbd360401 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -8,14 +8,14 @@ const darkTheme = themes.vsDark; const config = { title: 'Deriv API', tagline: 'Create your own apps', - url: 'https://binary-com.github.io', + url: 'https://api.deriv.com', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.png', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'binary-com', // Usually your GitHub org/user name. + organizationName: 'deriv-com', // Usually your GitHub org/user name. projectName: 'deriv-api-docs', // Usually your repo name. customFields: { diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/python/project-setup/index.md b/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/python/project-setup/index.md index 5d5290673..499c913dd 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/python/project-setup/index.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/python/project-setup/index.md @@ -4,7 +4,7 @@ sidebar_label: Configuration sidebar_position: 0 --- -Veuillez consulter la documentation de la bibliothèque [ici] (https://binary-com.github.io/python-deriv-api/) +Veuillez consulter la documentation de la bibliothèque [ici] (https://deriv-com.github.io/python-deriv-api/) :::caution Nous mettrons ces pages à jour à l'avenir lorsque nous aurons du contenu à leur proposer. diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/typescript/project-setup/index.md b/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/typescript/project-setup/index.md index 0bad0d8bc..21fbf3cf6 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/typescript/project-setup/index.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/_client-libraries/typescript/project-setup/index.md @@ -4,7 +4,7 @@ sidebar_label: Configuration sidebar_position: 0 --- -Veuillez consulter la documentation de la bibliothèque [ici] (https://binary-com.github.io/deriv-api/) +Veuillez consulter la documentation de la bibliothèque [ici] (https://deriv-com.github.io/deriv-api/) :::caution Nous mettrons ces pages à jour à l'avenir lorsque nous aurons du contenu à leur proposer. diff --git a/src/components/SandboxIframe/utility/sandboxes.tsx b/src/components/SandboxIframe/utility/sandboxes.tsx index 99af17894..4aff2fc16 100644 --- a/src/components/SandboxIframe/utility/sandboxes.tsx +++ b/src/components/SandboxIframe/utility/sandboxes.tsx @@ -1,5 +1,5 @@ const sandbox_url = - 'https://codesandbox.io/embed/github/binary-com/deriv-api-docs/tree/master/examples/'; + 'https://codesandbox.io/embed/github/deriv-com/deriv-api-docs/tree/master/examples/'; export const sandboxes = { auth: `${sandbox_url}auth`, diff --git a/src/configs/cms/backend.config.ts b/src/configs/cms/backend.config.ts index 1dc15692f..3a23472cd 100644 --- a/src/configs/cms/backend.config.ts +++ b/src/configs/cms/backend.config.ts @@ -2,7 +2,7 @@ import { CmsBackend } from 'netlify-cms-core'; const cms_backend: CmsBackend = { name: 'github', - repo: 'binary-com/deriv-api-docs', + repo: 'deriv-com/deriv-api-docs', branch: 'master', base_url: 'https://deriv-cms-external-oauth.binary.sx', auth_endpoint: 'api/begin', diff --git a/src/configs/cms/eventlisteners/blog.presave.ts b/src/configs/cms/eventlisteners/blog.presave.ts index 2803cd0c1..f7d247e24 100644 --- a/src/configs/cms/eventlisteners/blog.presave.ts +++ b/src/configs/cms/eventlisteners/blog.presave.ts @@ -12,7 +12,7 @@ const blog_presave_listener: CmsEventListener = { const github_user = JSON.parse(localStorage.getItem(GITHUB_USER_KEY)); const github_username = github_user?.name ?? github_user?.login ?? 'Deriv User'; - const github_url = github_user?.html_url ?? 'https://github.com/binary-com'; + const github_url = github_user?.html_url ?? 'https://github.com/deriv-com'; const avatar_url = github_user?.avatar_url ?? 'https://avatars.githubusercontent.com/u/93753441?v=4'; diff --git a/src/features/Home/ClientLibraries/ClientLibraries.tsx b/src/features/Home/ClientLibraries/ClientLibraries.tsx index b85fee724..7f5f5d89f 100644 --- a/src/features/Home/ClientLibraries/ClientLibraries.tsx +++ b/src/features/Home/ClientLibraries/ClientLibraries.tsx @@ -46,7 +46,7 @@ export const ClientLibraries = () => {
diff --git a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx index 03527ebf7..41642df25 100644 --- a/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx +++ b/src/features/Home/ClientLibraries/__tests__/ClientLibraries.test.tsx @@ -30,7 +30,7 @@ describe('ClientLibraries', () => { ); expect(screen.getByText('Go to the Python library').closest('a')).toHaveAttribute( 'href', - 'https://binary-com.github.io/python-deriv-api/', + 'https://deriv-com.github.io/python-deriv-api/', ); expect(screen.getByText('Go to the Flutter library').closest('a')).toHaveAttribute( 'href',