diff --git a/docusaurus/docs/dev-resources/_category_.json b/docusaurus/docs/dev-advanced/_category_.json similarity index 100% rename from docusaurus/docs/dev-resources/_category_.json rename to docusaurus/docs/dev-advanced/_category_.json diff --git a/docusaurus/docs/dev-resources/2-custom-domain/img/domain.jpg b/docusaurus/docs/dev-advanced/custom-domain/img/domain.jpg similarity index 100% rename from docusaurus/docs/dev-resources/2-custom-domain/img/domain.jpg rename to docusaurus/docs/dev-advanced/custom-domain/img/domain.jpg diff --git a/docusaurus/docs/dev-resources/2-custom-domain/index.md b/docusaurus/docs/dev-advanced/custom-domain/index.md similarity index 100% rename from docusaurus/docs/dev-resources/2-custom-domain/index.md rename to docusaurus/docs/dev-advanced/custom-domain/index.md diff --git a/docusaurus/docs/dev-resources/5-token-standard/img/token.png b/docusaurus/docs/dev-advanced/token-standard/img/token.png similarity index 100% rename from docusaurus/docs/dev-resources/5-token-standard/img/token.png rename to docusaurus/docs/dev-advanced/token-standard/img/token.png diff --git a/docusaurus/docs/dev-resources/5-token-standard/index.md b/docusaurus/docs/dev-advanced/token-standard/index.md similarity index 100% rename from docusaurus/docs/dev-resources/5-token-standard/index.md rename to docusaurus/docs/dev-advanced/token-standard/index.md diff --git a/docusaurus/docs/ecosystem-guide/3-co-marketing/img/comarketing.jpg b/docusaurus/docs/ecosystem-guide/co-marketing/img/comarketing.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/3-co-marketing/img/comarketing.jpg rename to docusaurus/docs/ecosystem-guide/co-marketing/img/comarketing.jpg diff --git a/docusaurus/docs/ecosystem-guide/3-co-marketing/index.md b/docusaurus/docs/ecosystem-guide/co-marketing/index.md similarity index 100% rename from docusaurus/docs/ecosystem-guide/3-co-marketing/index.md rename to docusaurus/docs/ecosystem-guide/co-marketing/index.md diff --git a/docusaurus/docs/ecosystem-guide/5-community-grants/img/community-grants.jpg b/docusaurus/docs/ecosystem-guide/community-grants/img/community-grants.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/5-community-grants/img/community-grants.jpg rename to docusaurus/docs/ecosystem-guide/community-grants/img/community-grants.jpg diff --git a/docusaurus/docs/ecosystem-guide/5-community-grants/index.md b/docusaurus/docs/ecosystem-guide/community-grants/index.md similarity index 100% rename from docusaurus/docs/ecosystem-guide/5-community-grants/index.md rename to docusaurus/docs/ecosystem-guide/community-grants/index.md diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/canister.png b/docusaurus/docs/ecosystem-guide/dev-grants/img/canister.png similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/canister.png rename to docusaurus/docs/ecosystem-guide/dev-grants/img/canister.png diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/cbindex.jpg b/docusaurus/docs/ecosystem-guide/dev-grants/img/cbindex.jpg similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/cbindex.jpg rename to docusaurus/docs/ecosystem-guide/dev-grants/img/cbindex.jpg diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/dev-resources.png b/docusaurus/docs/ecosystem-guide/dev-grants/img/dev-resources.png similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/dev-resources.png rename to docusaurus/docs/ecosystem-guide/dev-grants/img/dev-resources.png diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/dfinity-grants.jpg b/docusaurus/docs/ecosystem-guide/dev-grants/img/dfinity-grants.jpg similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/dfinity-grants.jpg rename to docusaurus/docs/ecosystem-guide/dev-grants/img/dfinity-grants.jpg diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/icp-burned.png b/docusaurus/docs/ecosystem-guide/dev-grants/img/icp-burned.png similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/icp-burned.png rename to docusaurus/docs/ecosystem-guide/dev-grants/img/icp-burned.png diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/internet-identity.png b/docusaurus/docs/ecosystem-guide/dev-grants/img/internet-identity.png similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/internet-identity.png rename to docusaurus/docs/ecosystem-guide/dev-grants/img/internet-identity.png diff --git a/docusaurus/docs/dev-resources/1-dev-grants/img/tvl.png b/docusaurus/docs/ecosystem-guide/dev-grants/img/tvl.png similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/img/tvl.png rename to docusaurus/docs/ecosystem-guide/dev-grants/img/tvl.png diff --git a/docusaurus/docs/dev-resources/1-dev-grants/index.md b/docusaurus/docs/ecosystem-guide/dev-grants/index.md similarity index 100% rename from docusaurus/docs/dev-resources/1-dev-grants/index.md rename to docusaurus/docs/ecosystem-guide/dev-grants/index.md diff --git a/docusaurus/docs/dev-resources/4-hackathon/img/hacker.jpg b/docusaurus/docs/ecosystem-guide/hackathon/img/hacker.jpg similarity index 100% rename from docusaurus/docs/dev-resources/4-hackathon/img/hacker.jpg rename to docusaurus/docs/ecosystem-guide/hackathon/img/hacker.jpg diff --git a/docusaurus/docs/dev-resources/4-hackathon/index.md b/docusaurus/docs/ecosystem-guide/hackathon/index.md similarity index 100% rename from docusaurus/docs/dev-resources/4-hackathon/index.md rename to docusaurus/docs/ecosystem-guide/hackathon/index.md diff --git a/docusaurus/docs/ecosystem-guide/2-media-assets/img/herbert_avatar.jpg b/docusaurus/docs/ecosystem-guide/media-assets/img/herbert_avatar.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/2-media-assets/img/herbert_avatar.jpg rename to docusaurus/docs/ecosystem-guide/media-assets/img/herbert_avatar.jpg diff --git a/docusaurus/docs/ecosystem-guide/2-media-assets/img/media.jpg b/docusaurus/docs/ecosystem-guide/media-assets/img/media.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/2-media-assets/img/media.jpg rename to docusaurus/docs/ecosystem-guide/media-assets/img/media.jpg diff --git a/docusaurus/docs/ecosystem-guide/2-media-assets/index.md b/docusaurus/docs/ecosystem-guide/media-assets/index.md similarity index 100% rename from docusaurus/docs/ecosystem-guide/2-media-assets/index.md rename to docusaurus/docs/ecosystem-guide/media-assets/index.md diff --git a/docusaurus/docs/ecosystem-guide/1-node-provider-faq/img/nodes.jpg b/docusaurus/docs/ecosystem-guide/node-provider-faq/img/nodes.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/1-node-provider-faq/img/nodes.jpg rename to docusaurus/docs/ecosystem-guide/node-provider-faq/img/nodes.jpg diff --git a/docusaurus/docs/ecosystem-guide/1-node-provider-faq/index.md b/docusaurus/docs/ecosystem-guide/node-provider-faq/index.md similarity index 99% rename from docusaurus/docs/ecosystem-guide/1-node-provider-faq/index.md rename to docusaurus/docs/ecosystem-guide/node-provider-faq/index.md index f6720d3..4c95e9e 100644 --- a/docusaurus/docs/ecosystem-guide/1-node-provider-faq/index.md +++ b/docusaurus/docs/ecosystem-guide/node-provider-faq/index.md @@ -1,5 +1,5 @@ --- -title: ICP节点供应商FAQ +title: ICP 节点供应商 FAQ image: './img/nodes.jpg' description: '' keywords: [DFINITY, ICP, IC, 互联网计算机, Internet Computer, Internet Computer Protocol, Web3, Crypto, Blockchain, 区块链, 加密货币, DApp, 去中心化, 去中心化应用, developer, startup, node operator] @@ -7,7 +7,7 @@ draft: false --- -# ICP节点供应商FAQ +# ICP 节点供应商 FAQ ![node operator](./img/nodes.jpg) diff --git a/docusaurus/docs/ecosystem-guide/4-showcase/img/showcase.jpg b/docusaurus/docs/ecosystem-guide/showcase/img/showcase.jpg similarity index 100% rename from docusaurus/docs/ecosystem-guide/4-showcase/img/showcase.jpg rename to docusaurus/docs/ecosystem-guide/showcase/img/showcase.jpg diff --git a/docusaurus/docs/ecosystem-guide/4-showcase/index.md b/docusaurus/docs/ecosystem-guide/showcase/index.md similarity index 100% rename from docusaurus/docs/ecosystem-guide/4-showcase/index.md rename to docusaurus/docs/ecosystem-guide/showcase/index.md diff --git a/docusaurus/docs/dev-resources/6-social-channels/img/community.jpg b/docusaurus/docs/ecosystem-guide/social-channels/img/community.jpg similarity index 100% rename from docusaurus/docs/dev-resources/6-social-channels/img/community.jpg rename to docusaurus/docs/ecosystem-guide/social-channels/img/community.jpg diff --git a/docusaurus/docs/dev-resources/6-social-channels/index.md b/docusaurus/docs/ecosystem-guide/social-channels/index.md similarity index 100% rename from docusaurus/docs/dev-resources/6-social-channels/index.md rename to docusaurus/docs/ecosystem-guide/social-channels/index.md diff --git a/docusaurus/docs/getting-started/7-code-examples/index.md b/docusaurus/docs/getting-started/7-code-examples/index.md deleted file mode 100644 index bdd60b8..0000000 --- a/docusaurus/docs/getting-started/7-code-examples/index.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: 代码示例 -image: './img/matrix.png' -description: '' -keywords: [DFINITY, ICP, IC, 互联网计算机, Internet Computer, Internet Computer Protocol, Web3, Crypto, Blockchain, 区块链, 加密货币, DApp, 去中心化, 去中心化应用, developer, startup, code examples] ---- - -# ICP 代码示例 - -![matrix](./img/matrix.png) - -IC 提供了很多范例供开发者参考。以下所有的示例都开源,并且持续更新中。 - -## Hello World {#hello-world} - -[Hello World](../1-hello-world/index.md) 示例由两个容器组成: -- 前端容器提供了一个页面; -- 后端容器提供方法供前端容器调用。 - -## 门限 ECDSA 签名 {#threshold-ecdsa-signing} - -[门限 ECDSA 签名](./1-threshold-ecdsa/index.md)示例提供了一个最小的容器智能合约、用于展示[门限 ECDSA](https://internetcomputer.org/docs/current/developer-docs/integrations/t-ecdsa/) 的相关接口。 - -## BTC 集成 {#btc-integration} - -[BTC 集成](./2-btc-integration/index.md)示例提供了一个可以在 IC 上发送和接收比特币的容器智能合约,该示例内部调用了 IC 的 [门限 ECDSA 接口](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-ecdsa_public_key) 和 [比特币接口](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-bitcoin-api)。 - -## To be continued diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-faucet.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-faucet.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-faucet.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-faucet.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-icp.jpg b/docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-icp.jpg similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-icp.jpg rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-icp.jpg diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-received.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-received.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/btc-received.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/btc-received.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/candid-ui.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/candid-ui.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/candid-ui.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/candid-ui.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/get-btc-address.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/get-btc-address.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/get-btc-address.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/get-btc-address.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/get-btc-balance.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/get-btc-balance.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/get-btc-balance.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/get-btc-balance.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/send-btc.png b/docusaurus/docs/getting-started/code-examples/btc-integration/img/send-btc.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/img/send-btc.png rename to docusaurus/docs/getting-started/code-examples/btc-integration/img/send-btc.png diff --git a/docusaurus/docs/getting-started/7-code-examples/2-btc-integration/index.md b/docusaurus/docs/getting-started/code-examples/btc-integration/index.md similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/2-btc-integration/index.md rename to docusaurus/docs/getting-started/code-examples/btc-integration/index.md diff --git a/docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/candid-web-ui-get.png b/docusaurus/docs/getting-started/code-examples/https-outcalls/img/candid-web-ui-get.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/candid-web-ui-get.png rename to docusaurus/docs/getting-started/code-examples/https-outcalls/img/candid-web-ui-get.png diff --git a/docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/candid-web-ui-post.png b/docusaurus/docs/getting-started/code-examples/https-outcalls/img/candid-web-ui-post.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/candid-web-ui-post.png rename to docusaurus/docs/getting-started/code-examples/https-outcalls/img/candid-web-ui-post.png diff --git a/docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/https-outcalls.jpg b/docusaurus/docs/getting-started/code-examples/https-outcalls/img/https-outcalls.jpg similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/img/https-outcalls.jpg rename to docusaurus/docs/getting-started/code-examples/https-outcalls/img/https-outcalls.jpg diff --git a/docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/index.md b/docusaurus/docs/getting-started/code-examples/https-outcalls/index.md similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/4-https-outcalls/index.md rename to docusaurus/docs/getting-started/code-examples/https-outcalls/index.md diff --git a/docusaurus/docs/getting-started/7-code-examples/3-ii-integration/img/greet-frontend.png b/docusaurus/docs/getting-started/code-examples/ii-integration/img/greet-frontend.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/3-ii-integration/img/greet-frontend.png rename to docusaurus/docs/getting-started/code-examples/ii-integration/img/greet-frontend.png diff --git a/docusaurus/docs/getting-started/7-code-examples/3-ii-integration/index.md b/docusaurus/docs/getting-started/code-examples/ii-integration/index.md similarity index 99% rename from docusaurus/docs/getting-started/7-code-examples/3-ii-integration/index.md rename to docusaurus/docs/getting-started/code-examples/ii-integration/index.md index 3da8216..7ad9168 100644 --- a/docusaurus/docs/getting-started/7-code-examples/3-ii-integration/index.md +++ b/docusaurus/docs/getting-started/code-examples/ii-integration/index.md @@ -6,7 +6,7 @@ import TeamContact from '../../../contact.md'; 这个教程展示了如何将 `Internet Identity` 集成到 dapp 前端,并在后端容器中使用用户身份。 -本教程将详述将使用 `dfx new` 生成默认的模板与 `Internet Identity` 集成所需的所有步骤。有关 `dfx new` 的文档,请参考[这里](../../6-use-dfx/index.md#dfx-new)。 完成本教程后,您的`dapp` 将具备以下功能: +本教程将详述将使用 `dfx new` 生成默认的模板与 `Internet Identity` 集成所需的所有步骤。有关 `dfx new` 的文档,请参考[这里](../../use-dfx/index.md#dfx-new)。 完成本教程后,您的`dapp` 将具备以下功能: - 提供 `Internet Identity` 登录按钮。 - 对 `Internet Identity` 提供的[主体](https://ic123.xyz/docs/getting-started/ic-glossary/#principal)进行问候。 diff --git a/docusaurus/docs/getting-started/7-code-examples/img/matrix.png b/docusaurus/docs/getting-started/code-examples/img/matrix.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/img/matrix.png rename to docusaurus/docs/getting-started/code-examples/img/matrix.png diff --git a/docusaurus/docs/getting-started/code-examples/index.md b/docusaurus/docs/getting-started/code-examples/index.md new file mode 100644 index 0000000..0fbee47 --- /dev/null +++ b/docusaurus/docs/getting-started/code-examples/index.md @@ -0,0 +1,36 @@ +--- +title: 代码示例 +image: './img/matrix.png' +description: '' +keywords: [DFINITY, ICP, IC, 互联网计算机, Internet Computer, Internet Computer Protocol, Web3, Crypto, Blockchain, 区块链, 加密货币, DApp, 去中心化, 去中心化应用, developer, startup, code examples] +--- + +# ICP 代码示例 + +![matrix](./img/matrix.png) + +IC 提供了很多范例供开发者参考。以下所有的示例都开源,并且持续更新中。 + +## Hello World {#hello-world} + +[Hello World](../hello-world/index.md) 示例由两个容器组成: +- 前端容器提供了一个页面; +- 后端容器提供方法供前端容器调用。 + +## Internet Identity 集成 {#ii-integration} + +[Internet Identity 集成](./ii-integration/index.md)展示了如何将 `Internet Identity` 集成到 DApps 前端,并在后端容器中使用用户身份。 + +## 门限 ECDSA 签名 {#threshold-ecdsa-signing} + +[门限 ECDSA 签名](./threshold-ecdsa/index.md)示例提供了一个最小的容器智能合约、用于展示[门限 ECDSA](https://internetcomputer.org/docs/current/developer-docs/integrations/t-ecdsa/) 的相关接口。 + +## BTC 集成 {#btc-integration} + +[BTC 集成](./btc-integration/index.md)示例提供了一个可以在 IC 上发送和接收比特币的容器智能合约,该示例内部调用了 IC 的 [门限 ECDSA 接口](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-ecdsa_public_key) 和 [比特币接口](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-bitcoin-api)。 + +## HTTPS outcalls {#https-outcalls} + +[HTTPS outcalls](./https-outcalls/index.md) 示例介绍如何利用 IC 的 HTTPS outcalls 功能从智能合约直接调用区块链外部的 HTTPS 服务。 + +## To be continued diff --git a/docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui.png b/docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui.png rename to docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui.png diff --git a/docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui_public-key.png b/docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui_public-key.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui_public-key.png rename to docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui_public-key.png diff --git a/docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui_sign.png b/docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui_sign.png similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/img/candid_ui_sign.png rename to docusaurus/docs/getting-started/code-examples/threshold-ecdsa/img/candid_ui_sign.png diff --git a/docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/index.md b/docusaurus/docs/getting-started/code-examples/threshold-ecdsa/index.md similarity index 100% rename from docusaurus/docs/getting-started/7-code-examples/1-threshold-ecdsa/index.md rename to docusaurus/docs/getting-started/code-examples/threshold-ecdsa/index.md diff --git a/docusaurus/docs/dev-resources/3-dev-tooling/img/tooling.jpg b/docusaurus/docs/getting-started/dev-tooling/img/tooling.jpg similarity index 100% rename from docusaurus/docs/dev-resources/3-dev-tooling/img/tooling.jpg rename to docusaurus/docs/getting-started/dev-tooling/img/tooling.jpg diff --git a/docusaurus/docs/dev-resources/3-dev-tooling/index.md b/docusaurus/docs/getting-started/dev-tooling/index.md similarity index 100% rename from docusaurus/docs/dev-resources/3-dev-tooling/index.md rename to docusaurus/docs/getting-started/dev-tooling/index.md diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_claim.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_claim.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_claim.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_claim.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_coupon.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_coupon.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_coupon.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_coupon.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_discord.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_discord.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_discord.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_discord.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_sdk.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_sdk.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_sdk.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_sdk.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_survey.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_survey.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_survey.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_survey.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_verify.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_verify.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_verify.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_verify.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_website.png b/docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_website.png similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/cycle_faucet_website.png rename to docusaurus/docs/getting-started/get-cycles/img/cycle_faucet_website.png diff --git a/docusaurus/docs/getting-started/3-get-cycles/img/faucet.jpg b/docusaurus/docs/getting-started/get-cycles/img/faucet.jpg similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/img/faucet.jpg rename to docusaurus/docs/getting-started/get-cycles/img/faucet.jpg diff --git a/docusaurus/docs/getting-started/3-get-cycles/index.md b/docusaurus/docs/getting-started/get-cycles/index.md similarity index 100% rename from docusaurus/docs/getting-started/3-get-cycles/index.md rename to docusaurus/docs/getting-started/get-cycles/index.md diff --git a/docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-backend-local.png b/docusaurus/docs/getting-started/hello-world/img/hello-dapp-backend-local.png similarity index 100% rename from docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-backend-local.png rename to docusaurus/docs/getting-started/hello-world/img/hello-dapp-backend-local.png diff --git a/docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-intro-local.png b/docusaurus/docs/getting-started/hello-world/img/hello-dapp-intro-local.png similarity index 100% rename from docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-intro-local.png rename to docusaurus/docs/getting-started/hello-world/img/hello-dapp-intro-local.png diff --git a/docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-intro.png b/docusaurus/docs/getting-started/hello-world/img/hello-dapp-intro.png similarity index 100% rename from docusaurus/docs/getting-started/1-hello-world/img/hello-dapp-intro.png rename to docusaurus/docs/getting-started/hello-world/img/hello-dapp-intro.png diff --git a/docusaurus/docs/getting-started/1-hello-world/img/hello.png b/docusaurus/docs/getting-started/hello-world/img/hello.png similarity index 100% rename from docusaurus/docs/getting-started/1-hello-world/img/hello.png rename to docusaurus/docs/getting-started/hello-world/img/hello.png diff --git a/docusaurus/docs/getting-started/1-hello-world/index.md b/docusaurus/docs/getting-started/hello-world/index.md similarity index 100% rename from docusaurus/docs/getting-started/1-hello-world/index.md rename to docusaurus/docs/getting-started/hello-world/index.md diff --git a/docusaurus/docs/getting-started/4-ic-glossary/img/glossary.jpg b/docusaurus/docs/getting-started/ic-glossary/img/glossary.jpg similarity index 100% rename from docusaurus/docs/getting-started/4-ic-glossary/img/glossary.jpg rename to docusaurus/docs/getting-started/ic-glossary/img/glossary.jpg diff --git a/docusaurus/docs/getting-started/4-ic-glossary/index.md b/docusaurus/docs/getting-started/ic-glossary/index.md similarity index 100% rename from docusaurus/docs/getting-started/4-ic-glossary/index.md rename to docusaurus/docs/getting-started/ic-glossary/index.md diff --git a/docusaurus/docs/getting-started/2-install-dfx/img/sdk.png b/docusaurus/docs/getting-started/install-dfx/img/sdk.png similarity index 100% rename from docusaurus/docs/getting-started/2-install-dfx/img/sdk.png rename to docusaurus/docs/getting-started/install-dfx/img/sdk.png diff --git a/docusaurus/docs/getting-started/2-install-dfx/index.md b/docusaurus/docs/getting-started/install-dfx/index.md similarity index 100% rename from docusaurus/docs/getting-started/2-install-dfx/index.md rename to docusaurus/docs/getting-started/install-dfx/index.md diff --git a/docusaurus/docs/getting-started/5-motoko-playground/img/motoko-playground.png b/docusaurus/docs/getting-started/motoko-playground/img/motoko-playground.png similarity index 100% rename from docusaurus/docs/getting-started/5-motoko-playground/img/motoko-playground.png rename to docusaurus/docs/getting-started/motoko-playground/img/motoko-playground.png diff --git a/docusaurus/docs/getting-started/5-motoko-playground/index.md b/docusaurus/docs/getting-started/motoko-playground/index.md similarity index 100% rename from docusaurus/docs/getting-started/5-motoko-playground/index.md rename to docusaurus/docs/getting-started/motoko-playground/index.md diff --git a/docusaurus/docs/getting-started/6-use-dfx/img/dfx.png b/docusaurus/docs/getting-started/use-dfx/img/dfx.png similarity index 100% rename from docusaurus/docs/getting-started/6-use-dfx/img/dfx.png rename to docusaurus/docs/getting-started/use-dfx/img/dfx.png diff --git a/docusaurus/docs/getting-started/6-use-dfx/index.md b/docusaurus/docs/getting-started/use-dfx/index.md similarity index 100% rename from docusaurus/docs/getting-started/6-use-dfx/index.md rename to docusaurus/docs/getting-started/use-dfx/index.md diff --git a/docusaurus/docusaurus.config.js b/docusaurus/docusaurus.config.js index dff57ef..8f2a0dc 100644 --- a/docusaurus/docusaurus.config.js +++ b/docusaurus/docusaurus.config.js @@ -98,29 +98,29 @@ const config = { position: 'left', label: '新手上路', }, + // { + // type: 'docSidebar', + // sidebarId: 'veteranSidebar', + // position: 'left', + // label: '高手进阶', + // }, { type: 'docSidebar', sidebarId: 'devSidebar', position: 'left', label: '开发者教程', }, - { - type: 'docSidebar', - sidebarId: 'supportSidebar', - position: 'left', - label: '开发者资源', - }, { type: 'docSidebar', sidebarId: 'web3Sidebar', position: 'left', - label: '解锁Web3', + label: '解锁 Web3', }, { type: 'docSidebar', sidebarId: 'introSidebar', position: 'left', - label: 'ICP介绍', + label: 'ICP 介绍', }, { type: 'docSidebar', @@ -138,7 +138,7 @@ const config = { type: 'docSidebar', sidebarId: 'aboutSidebar', position: 'left', - label: '关于ic123', + label: '关于 ic123', }, {to: '/blog', label: '新闻', position: 'left'}, { diff --git a/docusaurus/sidebars.js b/docusaurus/sidebars.js index 9067707..cf88ab2 100644 --- a/docusaurus/sidebars.js +++ b/docusaurus/sidebars.js @@ -16,11 +16,31 @@ const sidebars = { // By default, Docusaurus generates a sidebar from the docs folder structure // tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], - newbieSidebar: [{type: 'autogenerated', dirName: 'getting-started'}], + newbieSidebar: [ + "getting-started/hello-world/index", + "getting-started/install-dfx/index", + "getting-started/get-cycles/index", + "getting-started/ic-glossary/index", + "getting-started/use-dfx/index", + { + type: "category", + label: "代码示例", + link: { + type: "doc", + id: "getting-started/code-examples/index", + }, + items: [ + "getting-started/code-examples/threshold-ecdsa/index", + "getting-started/code-examples/btc-integration/index", + "getting-started/code-examples/ii-integration/index", + "getting-started/code-examples/https-outcalls/index", + ] + }, + ], - devSidebar: [{type: 'autogenerated', dirName: 'dev-course'}], + /*veteranSidebar: [{type: 'autogenerated', dirName: 'dev-advanced'}],*/ - supportSidebar: [{type: 'autogenerated', dirName: 'dev-resources'}], + devSidebar: [{type: 'autogenerated', dirName: 'dev-course'}], web3Sidebar: [{type: 'autogenerated', dirName: 'ic-web3'}], @@ -28,22 +48,15 @@ const sidebars = { appSidebar: [{type: 'autogenerated', dirName: 'apps-guide'}], - ecoSidebar: [{type: 'autogenerated', dirName: 'ecosystem-guide'}], + ecoSidebar: [ + "ecosystem-guide/dev-grants/index", + "ecosystem-guide/node-provider-faq/index", + "ecosystem-guide/media-assets/index", + "ecosystem-guide/co-marketing/index", + "ecosystem-guide/showcase/index", + ], aboutSidebar: [{type: 'autogenerated', dirName: 'about'}], - - // But you can create a sidebar manually - /* - tutorialSidebar: [ - 'intro', - 'hello', - { - type: 'category', - label: 'Tutorial', - items: ['tutorial-basics/create-a-document'], - }, - ], - */ }; module.exports = sidebars;