From 234d1c37a89c4ba6f41823a94405b83360c3a193 Mon Sep 17 00:00:00 2001 From: Yashovardhan Agrawal Date: Mon, 18 Sep 2023 17:18:43 +0800 Subject: [PATCH] remove /docs/ --- docs/sdk/core-kit/sfa-react-native/install.mdx | 4 ++-- docs/sdk/pnp/react-native/install.mdx | 2 +- mlc_config.json | 8 -------- src/common/quickstart/_pnp-reactnative-bare.mdx | 6 +++--- src/common/quickstart/_pnp-reactnative-expo.mdx | 6 +++--- src/common/quickstart/_tkey-react-native.mdx | 9 ++++----- src/common/quickstart/_tkey-react.mdx | 4 ++-- src/common/sdk/pnp/web/_external-wallet-adapters.mdx | 2 +- src/pages/content-hub/guides/browser-extension.mdx | 2 +- src/pages/content-hub/guides/ios.mdx | 2 +- .../builder/android/stepContent/evmRPCFunctions.mdx | 2 +- .../builder/flutter/stepContent/evmRPCFunctions.mdx | 2 +- .../builder/ios/stepContent/evmRPCFunctions.mdx | 2 +- 13 files changed, 21 insertions(+), 30 deletions(-) diff --git a/docs/sdk/core-kit/sfa-react-native/install.mdx b/docs/sdk/core-kit/sfa-react-native/install.mdx index 711606192..611d56151 100644 --- a/docs/sdk/core-kit/sfa-react-native/install.mdx +++ b/docs/sdk/core-kit/sfa-react-native/install.mdx @@ -25,8 +25,8 @@ such as push notifications, builds, and updates. Your Bare React Native app is entirely built on your machine. In this workflow, the developer has complete control, along with the complexity that comes with that. Configuration with `app.json` / `app.config.js` is mostly not supported in this context; instead, you will need to configure each -native project directly with Swift/Kotlin native modules. Check out the [troubleshooting section](/docs/sdk/pnp/react-native/install#troubleshooting) -for fixing common issues. +native project directly with Swift/Kotlin native modules. Check out the [troubleshooting section](/sdk/pnp/react-native/install#troubleshooting) for +fixing common issues. :::tip diff --git a/docs/sdk/pnp/react-native/install.mdx b/docs/sdk/pnp/react-native/install.mdx index beea698f2..1fa178914 100644 --- a/docs/sdk/pnp/react-native/install.mdx +++ b/docs/sdk/pnp/react-native/install.mdx @@ -25,7 +25,7 @@ such as push notifications, builds, and updates. Your Bare React Native app is entirely built on your machine. In this workflow, the developer has complete control, along with the complexity that comes with that. Configuration with `app.json` / `app.config.js` is mostly not supported in this context; instead, you will need to configure each -native project directly with Swift/Kotlin native modules. Check out the [troubleshooting section](/docs/sdk/pnp/react-native/install#troubleshooting) +native project directly with Swift/Kotlin native modules. Check out the [troubleshooting section](/sdk/pnp/react-native/install#troubleshooting) for fixing common issues. :::tip diff --git a/mlc_config.json b/mlc_config.json index 4bdd2a376..f1eb80e51 100644 --- a/mlc_config.json +++ b/mlc_config.json @@ -13,17 +13,9 @@ } ], "replacementPatterns": [ - { - "pattern": "^/docs/", - "replacement": "https://web3auth.io/" - }, { "pattern": "^/", "replacement": "https://web3auth.io/docs/" - }, - { - "pattern": "^./", - "replacement": "https://web3auth.io/docs/" } ], "ignorePatterns": [ diff --git a/src/common/quickstart/_pnp-reactnative-bare.mdx b/src/common/quickstart/_pnp-reactnative-bare.mdx index 449e4e409..37129b509 100644 --- a/src/common/quickstart/_pnp-reactnative-bare.mdx +++ b/src/common/quickstart/_pnp-reactnative-bare.mdx @@ -49,7 +49,7 @@ Once you're done initializing, just create a button that triggers the login for :::warning Please note that the v4 react-native-sdk has some breaking changes. For instance, `web3auth.login` is a void method, unlike the older versions of the -SDK. Please refer to the [migration guide](/docs/pnp/migration-guides/rn-v3-to-v4) for more. +SDK. Please refer to the [migration guide](/pnp/migration-guides/rn-v3-to-v4) for more. ::: @@ -86,8 +86,8 @@ To make use of the polyfilled modules while building the application, you need t :::info Expo Managed Workflow -You will have to create `metro.config.js` for Expo Managed Workflow, as it is not present by default. Also, note that polyfilling is not supported with -"Expo Go" app. It is compatible only with Custom Dev Client and EAS builds. +You will have to create `metro.config.js` for Expo Managed Workflow, as it is not present by default. Also, note that polyfilling is not supported +with "Expo Go" app. It is compatible only with Custom Dev Client and EAS builds. Please run `npx expo prebuild` to generate native code based on the version of expo a project has installed, before moving forward. diff --git a/src/common/quickstart/_pnp-reactnative-expo.mdx b/src/common/quickstart/_pnp-reactnative-expo.mdx index a94c908a1..a43ed604a 100644 --- a/src/common/quickstart/_pnp-reactnative-expo.mdx +++ b/src/common/quickstart/_pnp-reactnative-expo.mdx @@ -57,7 +57,7 @@ Once you're done initializing, just create a button that triggers the login for :::warning Please note that the v4 react-native-sdk has some breaking changes. For instance, `web3auth.login` is a void method, unlike the older versions of the -SDK. Please refer to the [migration guide](/docs/pnp/migration-guides/rn-v3-to-v4) for more +SDK. Please refer to the [migration guide](/pnp/migration-guides/rn-v3-to-v4) for more ::: @@ -94,8 +94,8 @@ To make use of the polyfilled modules while building the application, you need t :::info Expo Managed Workflow -You will have to create `metro.config.js` for Expo Managed Workflow, as it is not present by default. Also, note that polyfilling is not supported with -"Expo Go" app. It is compatible only with Custom Dev Client and EAS builds. +You will have to create `metro.config.js` for Expo Managed Workflow, as it is not present by default. Also, note that polyfilling is not supported +with "Expo Go" app. It is compatible only with Custom Dev Client and EAS builds. Please run `npx expo prebuild` to generate native code based on the version of expo a project has installed, before moving forward. diff --git a/src/common/quickstart/_tkey-react-native.mdx b/src/common/quickstart/_tkey-react-native.mdx index 23e23e079..d092c7c15 100644 --- a/src/common/quickstart/_tkey-react-native.mdx +++ b/src/common/quickstart/_tkey-react-native.mdx @@ -12,9 +12,8 @@ npm install --save @tkey/core @tkey/service-provider-base @tkey/storage-layer-to #### Additionally in this step, you need to configure your project to use these libraries. -- Checkout the - [CustomAuth SDK Configuration for React Native](/docs/sdk/core-kit/tkey-react-native/install#configuration-of-project-to-use-customauth-sdk) -- Learn about [polyfills for React Native](/docs/sdk/core-kit/tkey-react-native/install#bundler-polyfilling) +- Checkout the [CustomAuth SDK Configuration for React Native](/sdk/core-kit/tkey-react-native/install#configuration-of-project-to-use-customauth-sdk) +- Learn about [polyfills for React Native](/sdk/core-kit/tkey-react-native/install#bundler-polyfilling) ::: @@ -129,7 +128,7 @@ const triggerLogin = async () => { :::info - [What's a verifier?](/auth-provider-setup/verifiers) -- [How to create a auth0 verifier?](/docs/auth-provider-setup/federated-identity-providers) +- [How to create a auth0 verifier?](/auth-provider-setup/federated-identity-providers) ::: @@ -161,6 +160,6 @@ const initializeNewKey = async () => { :::warning This is set up the tKey in 2/2 flow, which means that the private will be lost once you log out of the app. To add more shares, make sure to use the -added modules and configure them as written in the [SDK Reference](/docs/sdk/core-kit/tkey-react-native/modules/) +added modules and configure them as written in the [SDK Reference](/sdk/core-kit/tkey-react-native/modules/) ::: diff --git a/src/common/quickstart/_tkey-react.mdx b/src/common/quickstart/_tkey-react.mdx index 3fa837d82..7512c5eca 100644 --- a/src/common/quickstart/_tkey-react.mdx +++ b/src/common/quickstart/_tkey-react.mdx @@ -102,7 +102,7 @@ const triggerLogin = async () => { :::info - [What's a verifier?](/auth-provider-setup/verifiers) -- [How to create a google verifier?](/docs/auth-provider-setup/social-providers/google) +- [How to create a google verifier?](/auth-provider-setup/social-providers/google) ::: @@ -147,6 +147,6 @@ const initializeNewKey = async () => { :::warning This is set up the tKey in 2/2 flow, which means that the private will be lost once you log out of the app. To add more shares, make sure to use the -added modules and configure them as written in the [SDK Reference](/docs/sdk/core-kit/tkey/modules/) +added modules and configure them as written in the [SDK Reference](/sdk/core-kit/tkey/modules/) ::: diff --git a/src/common/sdk/pnp/web/_external-wallet-adapters.mdx b/src/common/sdk/pnp/web/_external-wallet-adapters.mdx index 39df71d9a..f5a2c5418 100644 --- a/src/common/sdk/pnp/web/_external-wallet-adapters.mdx +++ b/src/common/sdk/pnp/web/_external-wallet-adapters.mdx @@ -5,7 +5,7 @@ To configure an adapter, create the instance of adapter by using its correspondi :::tip -Refer to the [Adapters documentation](/docs/sdk/pnp/web/adapters) to know more deeply about what adapters are available and how to configure them. +Refer to the [Adapters documentation](/sdk/pnp/web/adapters) to know more deeply about what adapters are available and how to configure them. ::: diff --git a/src/pages/content-hub/guides/browser-extension.mdx b/src/pages/content-hub/guides/browser-extension.mdx index 1d2f723e5..dbe92b0ec 100644 --- a/src/pages/content-hub/guides/browser-extension.mdx +++ b/src/pages/content-hub/guides/browser-extension.mdx @@ -53,7 +53,7 @@ the blockchain. ## How it works? We can integrate `@web3auth/no-modal` as well as `@web3auth/modal` to build a browser extension with Web3Auth. You can read more about both the SDKs -in the [SDKs](/docs/sdk/pnp/web) section. The login flow of the user is as follows: +in the [SDKs](/sdk/pnp/web) section. The login flow of the user is as follows: ![Web3Auth Core - Social Login Flow](/images/implicit-flow.svg) diff --git a/src/pages/content-hub/guides/ios.mdx b/src/pages/content-hub/guides/ios.mdx index 285eeba20..04875735e 100644 --- a/src/pages/content-hub/guides/ios.mdx +++ b/src/pages/content-hub/guides/ios.mdx @@ -132,7 +132,7 @@ let web3auth = Web3Auth(W3AInitParams( )) ``` -All the below code snippets are based on the above initialization. Please refer to the [Web3Auth ios SDK Reference](/docs/sdk/pnp/ios) for more +All the below code snippets are based on the above initialization. Please refer to the [Web3Auth ios SDK Reference](/sdk/pnp/ios) for more information. After creating a `Web3Auth` instance using one of the above methods, you can use the instance to call various methods. diff --git a/src/pages/integration-builder/builder/android/stepContent/evmRPCFunctions.mdx b/src/pages/integration-builder/builder/android/stepContent/evmRPCFunctions.mdx index ed2fac562..3aecf4052 100644 --- a/src/pages/integration-builder/builder/android/stepContent/evmRPCFunctions.mdx +++ b/src/pages/integration-builder/builder/android/stepContent/evmRPCFunctions.mdx @@ -8,6 +8,6 @@ While using the Web3Auth Android SDK, you get the private key and sessionId with :::info Connect any Blockchain -Refer to the [Blockchain Documentation](/docs/connect-blockchain/) to know more about how to make calls on any blockchain. +Refer to the [Blockchain Documentation](/connect-blockchain/) to know more about how to make calls on any blockchain. ::: diff --git a/src/pages/integration-builder/builder/flutter/stepContent/evmRPCFunctions.mdx b/src/pages/integration-builder/builder/flutter/stepContent/evmRPCFunctions.mdx index 115d591f7..15f4af720 100644 --- a/src/pages/integration-builder/builder/flutter/stepContent/evmRPCFunctions.mdx +++ b/src/pages/integration-builder/builder/flutter/stepContent/evmRPCFunctions.mdx @@ -8,6 +8,6 @@ While using the Web3Auth Flutter SDK, you get the private key within the user sc :::info Connect any Blockchain -Refer to the [Blockchain Documentation](/docs/connect-blockchain/) to know more about how to make calls on any blockchain. +Refer to the [Blockchain Documentation](/connect-blockchain/) to know more about how to make calls on any blockchain. ::: diff --git a/src/pages/integration-builder/builder/ios/stepContent/evmRPCFunctions.mdx b/src/pages/integration-builder/builder/ios/stepContent/evmRPCFunctions.mdx index f988a9fb2..c74228267 100644 --- a/src/pages/integration-builder/builder/ios/stepContent/evmRPCFunctions.mdx +++ b/src/pages/integration-builder/builder/ios/stepContent/evmRPCFunctions.mdx @@ -8,6 +8,6 @@ While using the Web3Auth iOS SDK, you get the private key and sessionId within t :::info Connect any Blockchain -Refer to the [Blockchain Documentation](/docs/connect-blockchain/) to know more about how to make calls on any blockchain. +Refer to the [Blockchain Documentation](/connect-blockchain/) to know more about how to make calls on any blockchain. :::