Skip to content

Commit

Permalink
Merge pull request #134 from ic123-xyz/reorg-structure
Browse files Browse the repository at this point in the history
Reorg site structure
  • Loading branch information
zire authored Feb 24, 2024
2 parents 785f255 + d6b7584 commit 6450d1a
Show file tree
Hide file tree
Showing 75 changed files with 78 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
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]
draft: false
---


# ICP节点供应商FAQ
# ICP 节点供应商 FAQ

![node operator](./img/nodes.jpg)

Expand Down
28 changes: 0 additions & 28 deletions docusaurus/docs/getting-started/7-code-examples/index.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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)进行问候。
Expand Down
36 changes: 36 additions & 0 deletions docusaurus/docs/getting-started/code-examples/index.md
Original file line number Diff line number Diff line change
@@ -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
18 changes: 9 additions & 9 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -138,7 +138,7 @@ const config = {
type: 'docSidebar',
sidebarId: 'aboutSidebar',
position: 'left',
label: '关于ic123',
label: '关于 ic123',
},
{to: '/blog', label: '新闻', position: 'left'},
{
Expand Down
47 changes: 30 additions & 17 deletions docusaurus/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,47 @@ 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'}],

introSidebar: [{type: 'autogenerated', dirName: 'intro-ic'}],

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;

0 comments on commit 6450d1a

Please sign in to comment.