Skip to content

Commit

Permalink
fix docs links (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Apr 3, 2024
1 parent 89ee571 commit 2d344ad
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/components/BuildingWithMsgport/data.ts
Original file line number Diff line number Diff line change
@@ -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" }[] = [
{
Expand Down
6 changes: 3 additions & 3 deletions src/components/FooterLinks/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
Expand All @@ -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,
},
],
Expand Down
20 changes: 10 additions & 10 deletions src/components/Header/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
Expand All @@ -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 },
Expand All @@ -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 },
],
},
{
Expand All @@ -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,
},
],
Expand All @@ -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,
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/components/UseCase/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/data/getInvolved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/data/ringdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down

0 comments on commit 2d344ad

Please sign in to comment.