Skip to content

Commit

Permalink
Merge branch 'main' into translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fankouzu authored Jul 24, 2024
2 parents bdcab35 + 674e88e commit cd581be
Show file tree
Hide file tree
Showing 151 changed files with 12,963 additions and 19 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ cache
.DS_Store
package-lock.json
.idea
.next
.next
.env
.local_keys
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Solana中文大全
# Solana 中文大全

<a href="https://github.com/Fankouzu/solana-basic-ui/stargazers"><img src="https://img.shields.io/github/stars/Fankouzu/solana-basic-ui" alt="Stars Badge"/></a>
<a href="https://github.com/Fankouzu/solana-basic-ui/network/members"><img src="https://img.shields.io/github/forks/Fankouzu/solana-basic-ui" alt="Forks Badge"/></a>
Expand All @@ -7,17 +7,19 @@
<a href="https://github.com/Fankouzu/solana-basic-ui/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/Fankouzu/solana-basic-ui?color=2b9348"></a>
<a href="https://github.com/Fankouzu/solana-basic-ui/blob/master/LICENSE"><img src="https://img.shields.io/github/license/Fankouzu/solana-basic-ui?color=2b9348" alt="License Badge"/></a>

此仓库的代码会部署在 [solana-cn.com](https://solana-basic.surge.sh/) 域名下。
此仓库的代码会部署在 [solana-cn.com](https://solana-cn.com/) 域名下。

## 任务认领

参与翻译,请参考 [issues](https://github.com/Fankouzu/solana-basic-ui/issues)

阅读顺序:

- [翻译流程说明](https://github.com/Fankouzu/solana-basic-ui/issues/17)
- [翻译任务认领](https://github.com/Fankouzu/solana-basic-ui/issues/14)

## Pull Requests

如果你对文章内容存在疑问,请先阅读英文文档,查看是不是翻译问题。

如果属于翻译问题,请直接 PR 到本仓库;
Expand All @@ -27,7 +29,9 @@
此站点基于 [Vitepress](https://vitepress.dev/zh/) 构建,并部署在 [vercel.com](https://vercel.com)

## 本地调试

如下本地调试,请根据你的运行环境安装 [Node.js](https://nodejs.org),并进行如下操作:

```
# 克隆本仓库
git clone https://github.com/Fankouzu/solana-basic-ui.git
Expand All @@ -38,15 +42,17 @@ cd solana-basic-ui
# 安装依赖
npm install
```

执行完上述操作,即可进行本地调试:

```
npm run docs:dev
```

![Alt](https://repobeats.axiom.co/api/embed/dee699aaf19f40a044b9f5fa987add4eb3b6ec23.svg "Repobeats analytics image")


## 贡献者

<a href="https://github.com/fankouzu/solana-basic-ui/graphs/contributors">
<img src="https://contrib.rocks/image?repo=fankouzu/solana-basic-ui&anon=1" />
</a>
163 changes: 154 additions & 9 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,107 @@ function nav(): DefaultTheme.NavItem[] {
},
],
},
{
text: "社区教程",
items: [
{
text: "Solana Basic",
link: "/SolanaBasic/000",
activeMatch: "/SolanaBasic/",
},
{
text: "Solana Action & Blink",
link: "/SolanaAction/001",
activeMatch: "/SolanaAction/",
},
],
},
{
text: "资源导航",
items: [
{
text: "浏览器",
link: "/SolanaResources/explorer",
activeMatch: "/SolanaResources/explorer",
},
{
text: "基础设施",
link: "/SolanaResources/infrastructure",
activeMatch: "/SolanaResources/infrastructure",
},
{
text: "信息查询",
link: "/SolanaResources/information",
activeMatch: "/SolanaResources/information",
},
{
text: "钱包",
link: "/SolanaResources/wallets",
activeMatch: "/SolanaResources/wallets",
},
{
text: "资产查询",
link: "/SolanaResources/assets",
activeMatch: "/SolanaResources/assets",
},
{
text: "Defi",
link: "/SolanaResources/defi",
activeMatch: "/SolanaResources/defi",
},
],
},
];
}

function sidebarSolanaResources(): DefaultTheme.SidebarItem[] {
return [
{ text: "浏览器", link: "explorer" },
{ text: "基础设施", link: "infrastructure" },
{ text: "信息查询", link: "information" },
{ text: "钱包", link: "wallets" },
{ text: "资产查询", link: "assets" },
{ text: "Defi", link: "defi" },
];
}
function sidebarSolanaBasic(): DefaultTheme.SidebarItem[] {
return [
{
text: "第一阶段:账户与代币",
collapsed: false,
items: [
{ text: "核心概念", link: "000" },
{ text: "客户端安装", link: "001" },
{ text: "代币基础", link: "002" },
{ text: "非同质化代币", link: "003" },
],
},
{
text: "第二阶段:脚本互动",
collapsed: false,
items: [
{ text: "账户", link: "004" },
{ text: "版本化交易", link: "005" },
{ text: "包装SOL", link: "006" },
{ text: "创建代币", link: "007" },
{ text: "非同质化代币", link: "008" },
],
},
{
text: "第三阶段:",
collapsed: false,
items: [
{ text: "糖果机概述", link: "009" },
{ text: "配置糖果机", link: "010" },
{ text: "管理糖果机", link: "011" },
{ text: "插入项目", link: "012" },
{ text: "糖果卫士", link: "013" },
{ text: "卫士组", link: "014" },
{ text: "铸造", link: "015" },
],
},
];
}
function sidebarSolanaDocumention(): DefaultTheme.SidebarItem[] {
return [
{
Expand Down Expand Up @@ -112,18 +210,16 @@ function sidebarSolanaDocumention(): DefaultTheme.SidebarItem[] {
{ text: "部署程序", link: "programs/deploying" },
{ text: "程序示例", link: "programs/examples" },
{ text: "常见问题", link: "programs/faq" },
// { text: "使用C语言开发", link: "lang-c" },
// { text: "使用Rust语言开发", link: "lang-rust" },
// { text: "Solana的局限性", link: "limitations" },
{ text: "使用C语言开发", link: "programs/lang-c" },
{ text: "使用Rust语言开发", link: "programs/lang-rust" },
{ text: "局限性", link: "programs/limitations" },
],
},
{
text: "更多",
collapsed: false,
base: "/SolanaDocumention/more/",
items: [
{ text: "将 Solana 添加到您的交易所", link: "exchange" },
],
items: [{ text: "将 Solana 添加到您的交易所", link: "exchange" }],
},
];
}
Expand Down Expand Up @@ -155,6 +251,9 @@ function sidebarSolanaValidatorDocumentation(): DefaultTheme.SidebarItem[] {
collapsed: false,
items: [
{ text: "概述", link: "cli/cli" },
{ text: "安装 Solana CLI", link: "cli/install" },
{ text: "Solana CLI介绍", link: "cli/intro" },
{ text: "参考和用法", link: "cli/usage" },
{
text: "命令行钱包",
collapsed: false,
Expand Down Expand Up @@ -203,10 +302,26 @@ function sidebarSolanaValidatorDocumentation(): DefaultTheme.SidebarItem[] {
text: "部署程序",
link: "cli/examples/deploy-a-program",
},
{
text: "持久化交易随机数",
link: "cli/examples/durable-nonce",
},
{
text: "离线交易签名",
link: "cli/examples/offline-signing",
},
{
text: "链下消息签名",
link: "cli/examples/sign-offchain-message",
},
{
text: "测试验证器",
link: "cli/examples/test-validator",
},
{
text: "发送与接收代币",
link: "cli/examples/transfer-tokens",
},
],
},
],
Expand All @@ -232,10 +347,23 @@ function sidebarSolanaValidatorDocumentation(): DefaultTheme.SidebarItem[] {
items: [
{ text: "Solana承诺状态", link: "consensus/commitments" },
{ text: "分叉生成", link: "consensus/fork-generation" },
{ text: "管理分叉", link: "consensus/managing-forks" },
],
},
],
},
{
text: "运行验证器",
collapsed: false,
items: [
{ text: "运行验证器", link: "operations/operations" },
{
text: "验证者节点 vs RPC节点",
link: "operations/validator-or-rpc-node",
},
{ text: "准备工作", link: "operations/prerequisites" },
],
},
],
},
];
Expand All @@ -258,17 +386,26 @@ function sidebarSolanaProgramLibrary(): DefaultTheme.SidebarItem[] {
],
},
{ text: "Token 兑换程序", link: "token-swap" },

{ text: "代币升级程序", link: "token-upgrade" },
{ text: "备忘录程序", link: "memo" },
{ text: "域名服务", link: "name-service" },
{ text: "共享内存程序", link: "shared-memory" },
{
text: "质押池",
collapsed: false,
items: [
{ text: "质押池介绍", link: "stake-pool/stake-pool" },
],
items: [{ text: "质押池介绍", link: "stake-pool/stake-pool" }],
},
{ text: "单一验证节点质押池", link: "single-pool" },
{ text: "转账钩子接口",
collapsed: false,
items: [
{ text: "介绍", link: "transfer-hook-interface" },
{ text: "规范", link: "transfer-hook-interface/specification" },
{ text: "配置额外账户", link: "transfer-hook-interface/configuring-extra-accounts" },
{ text: "示例", link: "transfer-hook-interface/examples" },
]
}
];
}
// refer https://vitepress.dev/reference/site-config for details
Expand All @@ -293,6 +430,14 @@ export default defineConfig({
base: "/SolanaProgramLibrary/",
items: sidebarSolanaProgramLibrary(),
},
"/SolanaBasic/": {
base: "/SolanaBasic/",
items: sidebarSolanaBasic(),
},
"/SolanaResources/": {
base: "/SolanaResources/",
items: sidebarSolanaResources(),
},
},
footer: {
message:
Expand Down
Loading

0 comments on commit cd581be

Please sign in to comment.