From 2d344addefe9bc99335d521296e49c558fa3e1f6 Mon Sep 17 00:00:00 2001 From: fisher Date: Wed, 3 Apr 2024 19:58:13 +0800 Subject: [PATCH] fix docs links (#400) --- src/components/BuildingWithMsgport/data.ts | 2 +- src/components/FooterLinks/data.ts | 6 +++--- src/components/Header/data.ts | 20 ++++++++++---------- src/components/Resources/index.tsx | 2 +- src/components/UseCase/data.ts | 4 ++-- src/data/getInvolved.ts | 4 ++-- src/data/ringdata.ts | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/BuildingWithMsgport/data.ts b/src/components/BuildingWithMsgport/data.ts index d358607f..64a3d223 100644 --- a/src/components/BuildingWithMsgport/data.ts +++ b/src/components/BuildingWithMsgport/data.ts @@ -1,6 +1,6 @@ export const title: string[] = ["Start building with", "Darwinia Msgport"]; -export const link: string = "https://docs.darwinia.network/simplest-messaging-demo-045164a7d4d7413ba4a5dd65214e59e6"; // External link +export const link: string = "https://github.com/darwinia-network/msgport-demo"; // External link export const menu: { title: string; description: string; code: string; language: "solidity" | "javascript" }[] = [ { diff --git a/src/components/FooterLinks/data.ts b/src/components/FooterLinks/data.ts index d6277944..9063da37 100644 --- a/src/components/FooterLinks/data.ts +++ b/src/components/FooterLinks/data.ts @@ -9,7 +9,7 @@ export const columns: { sections: Section[] }[] = [ { text: "Documentation", href: "https://docs.darwinia.network/", isExternal: true }, { text: "Use Cases", - href: "https://docs.darwinia.network/use-cases-d707f114326a4fed8cdc6c2b37b444b1", + href: "https://docs.darwinia.network/msgport/user-cases/token-bridge/", isExternal: true, }, ], @@ -19,12 +19,12 @@ export const columns: { sections: Section[] }[] = [ links: [ { text: "Messaging Protocols", - href: "https://docs.darwinia.network/messaging-protocols-69586eedc835438cbed676ef4f35cb93", + href: "https://docs.darwinia.network/msgport/messaging-protocols/ormp/", isExternal: true, }, { text: "Darwinia EVM+", - href: "https://docs.darwinia.network/darwinia-evm-df814f681ec248438cb762df8aaddbd6", + href: "https://docs.darwinia.network/evm/overview/", isExternal: true, }, ], diff --git a/src/components/Header/data.ts b/src/components/Header/data.ts index 58a8053d..216e2860 100644 --- a/src/components/Header/data.ts +++ b/src/components/Header/data.ts @@ -15,22 +15,22 @@ export const navigations: { }, { label: "Stake RING", - link: "https://docs.darwinia.network/staking-guide-4306a2a3f25f4ea0b41377e267e1d319", + link: "https://docs.darwinia.network/evm/tutorial/staking/", isExternal: true, }, { label: "Run A Node", - link: "https://docs.darwinia.network/run-collator-node-af6bce360d5b49ddacc56e4587510210", + link: "https://docs.darwinia.network/evm/tutorial/chain/run-archive-node/", isExternal: true, }, { label: "Cross-Chain Asset Bridge", - link: "https://docs.darwinia.network/tokenasset-bridge-c2b42b6e0c3348ddb91333a4f24ac4d9", + link: "https://docs.darwinia.network/msgport/user-cases/token-bridge/", isExternal: true, }, { label: "Cross-Chain DAO Governance", - link: "https://docs.darwinia.network/multi-chain-dao-governance-d3b2e194828d4af8bad8e3fa28219fc3", + link: "https://docs.darwinia.network/msgport/user-cases/multichain-dao-governance/", isExternal: true, }, ], @@ -41,7 +41,7 @@ export const navigations: { { label: "What Is Darwinia", link: "https://docs.darwinia.network/", isExternal: true }, { label: "What Is RING", - link: "https://docs.darwinia.network/token-and-economic-model-ebfbf88c76794215a4abe75ae13f596b", + link: "https://docs.darwinia.network/ring/", isExternal: true, }, { label: "Darwinia Ecosystem DApps", link: "https://apps.darwinia.network/", isExternal: true }, @@ -55,10 +55,10 @@ export const navigations: { { label: "Paper Resources", link: "/papers", isExternal: false }, { label: "Glossary", - link: "https://docs.darwinia.network/glossary-8967fc4aa6a046a69b525dff7bf70a50", + link: "https://docs.darwinia.network/msgport/glossary/", isExternal: true, }, - { label: "FAQ", link: "https://darwinia.notion.site/FAQ-c9412ead803542f197ba1ccafb72c427", isExternal: true }, + { label: "FAQ", link: "https://docs.darwinia.network/msgport/faq/", isExternal: true }, ], }, { @@ -67,7 +67,7 @@ export const navigations: { { label: "Documentation", link: "https://docs.darwinia.network/", isExternal: true }, { label: "Use Cases", - link: "https://docs.darwinia.network/use-cases-d707f114326a4fed8cdc6c2b37b444b1", + link: "https://docs.darwinia.network/msgport/user-cases/token-bridge/", isExternal: true, }, ], @@ -77,12 +77,12 @@ export const navigations: { sub: [ { label: "Messaging Protocols", - link: "https://docs.darwinia.network/messaging-protocols-69586eedc835438cbed676ef4f35cb93", + link: "https://docs.darwinia.network/msgport/messaging-protocols/ormp/", isExternal: true, }, { label: "Darwinia EVM+", - link: "https://docs.darwinia.network/darwinia-evm-df814f681ec248438cb762df8aaddbd6", + link: "https://docs.darwinia.network/evm/overview/", isExternal: true, }, ], diff --git a/src/components/Resources/index.tsx b/src/components/Resources/index.tsx index 2f6a09c4..e70e3498 100644 --- a/src/components/Resources/index.tsx +++ b/src/components/Resources/index.tsx @@ -19,7 +19,7 @@ const resources: { icon: string; title: string; description: string; detail: { l icon: "/images/resources/technical-docs.png", title: "Technical Docs", description: "Start building your Cross-Chain DApp with Darwinia Msgport.", - detail: { link: "https://docs.darwinia.network/darwinia-msgport-fa89f501ea1747e285b6169697e2ff77" }, + detail: { link: "https://docs.darwinia.network/msgport/overview/" }, }, { icon: "/images/resources/developer-assistance.png", diff --git a/src/components/UseCase/data.ts b/src/components/UseCase/data.ts index bb2a5168..7e97f71d 100644 --- a/src/components/UseCase/data.ts +++ b/src/components/UseCase/data.ts @@ -44,7 +44,7 @@ contract ExampleXAccount { IMessagePort(port).send{value: msg.value}(toChainId, module, message, params); } }`, - link: "https://docs.darwinia.network/cross-chain-abstract-account-a0aae327c3d54555818fdab1149d0608", + link: "https://docs.darwinia.network/msgport/user-cases/abstract-account/", description: "xAccount is a component within Darwinia Msgport, xAccount simplifies the user experience in executing cross-chain operations.", language: "solidity", @@ -180,7 +180,7 @@ contract MsglineMessager is Application, AccessController { ); } }`, - link: "https://docs.darwinia.network/tokenasset-bridge-c2b42b6e0c3348ddb91333a4f24ac4d9", + link: "https://docs.darwinia.network/msgport/user-cases/token-bridge/", description: "By utilizing Darwinia Msgport, DApp developers can facilitate efficient cross-chain transfer and management of assets, streamlining the process of moving assets between different blockchain networks.", language: "solidity", diff --git a/src/data/getInvolved.ts b/src/data/getInvolved.ts index d5684e27..ccea7c7a 100644 --- a/src/data/getInvolved.ts +++ b/src/data/getInvolved.ts @@ -43,7 +43,7 @@ export function useGetInvolvedData(): GetInvolvedData { [ { label: "Run collator node", - path: "https://docs.darwinia.network/how-to-become-a-collator-af6bce360d5b49ddacc56e4587510210", + path: "https://docs.darwinia.network/evm/tutorial/chain/run-collator-node/", isExternal: true, }, " in helping to further decentralize Darwinia", @@ -86,7 +86,7 @@ export function useGetInvolvedData(): GetInvolvedData { { link: { label: "Staking guide", - path: "https://docs.darwinia.network/staking-guide-d7387bfc4d3f4604860651f268ed00ba", + path: "https://docs.darwinia.network/evm/tutorial/staking/", isExternal: true, }, }, diff --git a/src/data/ringdata.ts b/src/data/ringdata.ts index 73d0c6b1..2fdbf65d 100644 --- a/src/data/ringdata.ts +++ b/src/data/ringdata.ts @@ -70,7 +70,7 @@ interface CardsData { desc : "If you already have some RING, you can earn more by running a collator node or stake your RING to a collator." , buttonText : "Learn more" , type : "" , - link : "https://docs.darwinia.network/staking-guide-4306a2a3f25f4ea0b41377e267e1d319" + link : "https://docs.darwinia.network/evm/tutorial/staking/" } , ]; export const Centralizeddata : ExchangesdataType[] = [