From 4c422df2006d9e8ccdab1634b7b2333dde086ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E6=A3=89=E5=A4=A7=E5=B8=88?= <1046166@qq.com> Date: Wed, 22 May 2024 18:40:25 +0800 Subject: [PATCH] update spl-token --- docs/.vitepress/config.ts | 19 +++++++++++++++++++ docs/SPL-Token/index.md | 4 +++- docs/SPL-Token/{spl-token-cn.md => token.md} | 0 3 files changed, 22 insertions(+), 1 deletion(-) rename docs/SPL-Token/{spl-token-cn.md => token.md} (100%) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 0173bdd..6c2747c 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -12,6 +12,11 @@ function nav(): DefaultTheme.NavItem[] { link: "/CLI/connecting-to-a-cluster", activeMatch: "/CLI/", }, + { + text: "SPL Token", + link: "/SPL-Token/index", + activeMatch: "/SPL/", + }, ]; } @@ -63,6 +68,19 @@ function sidebarCLI(): DefaultTheme.SidebarItem[] { }, ]; } + +function sidebarSPL(): DefaultTheme.SidebarItem[] { + return [ + { + text: "SPL Token", + collapsed: false, + items: [ + { text: "概述", link: "/index" }, + { text: "Token程序", link: "/token" }, + ], + }, + ]; +} // refer https://vitepress.dev/reference/site-config for details export default defineConfig({ lang: "zh-CN", @@ -78,6 +96,7 @@ export default defineConfig({ items: sidebarIntroduction(), }, "/CLI/": { base: "/CLI/", items: sidebarCLI() }, + "/SPL-Token/": { base: "/SPL-Token/", items: sidebarSPL() }, }, }, }); \ No newline at end of file diff --git a/docs/SPL-Token/index.md b/docs/SPL-Token/index.md index 5052b45..49e608d 100644 --- a/docs/SPL-Token/index.md +++ b/docs/SPL-Token/index.md @@ -1 +1,3 @@ -# Spl-Token \ No newline at end of file +# Introduction + +Solana 程序库 (SPL) 是针对 Sealevel 并行运行时的链上程序的集合。 这些程序针对 Solana 的 Sealevel 实现、solana-runtime 进行了测试,并部署到其主网。 当其他人实现 Sealevel 时,我们将慷慨地接受补丁,以确保此处的程序可在所有实现中移植。 \ No newline at end of file diff --git a/docs/SPL-Token/spl-token-cn.md b/docs/SPL-Token/token.md similarity index 100% rename from docs/SPL-Token/spl-token-cn.md rename to docs/SPL-Token/token.md