Skip to content

Commit

Permalink
add docs format
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Oct 5, 2024
1 parent 26c1d10 commit f63a936
Show file tree
Hide file tree
Showing 53 changed files with 120 additions and 51 deletions.
77 changes: 58 additions & 19 deletions docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const en = defineConfig({

sidebar: {
'/dapplink/': { base: '/dapplink/', items: sidebarDappLink() },
'/wallet/': { base: '/wallet/', items: sidebarwallet() }
'/wallet/': { base: '/wallet/', items: sidebarWallet() }
},

editLink: {
Expand All @@ -32,7 +32,7 @@ function nav(): DefaultTheme.NavItem[] {
return [
{
text: 'DappLink',
link: '/dapplink/what-is-dapplink-docs',
link: '/dapplink/what-is-dapplink',
activeMatch: '/dapplink/'
},
{
Expand All @@ -42,18 +42,18 @@ function nav(): DefaultTheme.NavItem[] {
},
{
text: 'DA',
link: '/dapplink/site-config',
activeMatch: '/wallet/'
link: '/da/overview',
activeMatch: '/da/'
},
{
text: 'L2 & L3',
link: '/dapplink/site-config',
activeMatch: '/wallet/'
link: '/chain/overview',
activeMatch: '/chain/'
},
{
text: 'Dapps',
link: '/dapplink/site-config',
activeMatch: '/wallet/'
link: '/dapps/overview',
activeMatch: '/dapps/'
},
{
text: pkg.version,
Expand All @@ -77,32 +77,71 @@ function sidebarDappLink(): DefaultTheme.SidebarItem[] {
text: 'Introduction',
collapsed: false,
items: [
{ text: 'What is DappLink?', link: 'what-is-dapplink-docs' },
{ text: 'DappLink Layer3', link: 'dapplink-layer3' },
{ text: 'What is DappLink ?', link: 'what-is-dapplink' },
{ text: 'DappLink Core Business', link: 'core-business' },
]
},
{
text: 'DappLink Layer3',
collapsed: false,
items: [
{ text: 'What is DappLink Layer3 ?', link: 'what-is-dapplink-layer3' },
]
},
{
text: 'One-Click Wallet Deployment',
collapsed: false,
items: [
{ text: 'What is One-Click Wallet Deployment ?', link: 'what-is-dapplink-wallet' },
]
},
{
text: 'One-Click Chain Deployment',
collapsed: false,
items: [
{ text: 'What is One-Click L2&L3 Deployment ?', link: 'what-is-dapplink-chain' },
]
},
{
text: 'One-Click DA Deployment',
collapsed: false,
items: [
{ text: 'What is One-Click DA Deployment ?', link: 'what-is-dapplink-da' },
]
},
{
text: 'xxxxx',
text: 'One-Click Deployment of Decentralized Composite Applications',
collapsed: false,
items: [
{ text: 'xxxx', link: 'xxxx' },
{ text: 'What are Decentralized Composite Applications ?', link: 'what-is-dapplink-dapps' },
]
}
]
}

function sidebarwallet(): DefaultTheme.SidebarItem[] {
function sidebarWallet(): DefaultTheme.SidebarItem[] {
return [
{
text: 'wallet',
text: 'One-Click Wallet Deployment',
items: [
{ text: 'Overview', link: 'overview' },
{ text: 'DappLink Wallet', link: 'dapplink-wallet' },
{ text: 'System Architecture', link: 'overview' },
{ text: 'Core Function', link: 'dapplink-wallet' },
{
text: 'Projects',
base: '/dapplink/default-theme-',
text: 'Project Components',
base: '/wallet/',
items: [
{ text: 'wallet-chain-node', link: 'config' }
{ text: 'Unified Browser API Code Library', link: 'chain-explorer-api' },
{ text: 'Unified RPC Interface Service', link: 'wallet-chain-node' },
{ text: 'Key Management Tool', link: 'key-locker' },
{ text: 'Underlying Library for Threshold Secret Sharing Algorithms', link: 'dapplink-secret' },
{ text: 'Market Aggregator', link: 'skyeye' },
{ text: 'Trade System', link: 'trade' },
{ text: 'Offline Sign SDK', link: 'wallet-sdk' },
{ text: 'MPC Network', link: 'tss' },
{ text: 'Cross-Chain Staking Project', link: 'linklayer' },
{ text: 'HD Wallet Backend Service', link: 'hailstone' },
{ text: 'Unified Wallet Services for Deposit, Withdrawal, Aggregation, Cold Transfer, and Risk Control', link: 'wallet-scanner' },
{ text: 'Centralized Wallet Business Components', link: 'centralized-wallet-servicer' }
]
}
]
Expand Down
60 changes: 35 additions & 25 deletions docs/.vitepress/config/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const zh = defineConfig({

sidebar: {
'/zh/dapplink/': { base: '/zh/dapplink/', items: sidebarDappLink() },
'/zh/wallet/': { base: '/zh/wallet/', items: sidebarwallet() }
'/zh/wallet/': { base: '/zh/wallet/', items: sidebarWallet() }
},

editLink: {
Expand Down Expand Up @@ -56,7 +56,7 @@ function nav(): DefaultTheme.NavItem[] {
return [
{
text: 'DappLink',
link: '/zh/dapplink/what-is-dapplink-docs',
link: '/zh/dapplink/what-is-dapplink',
activeMatch: '/zh/dapplink/'
},
{
Expand All @@ -66,18 +66,18 @@ function nav(): DefaultTheme.NavItem[] {
},
{
text: '公链',
link: '/zh/dapplink/site-config',
activeMatch: '/zh/wallet/'
link: '/zh/chain/overview',
activeMatch: '/zh/chain/'
},
{
text: 'DA',
link: '/zh/dapplink/site-config',
activeMatch: '/zh/wallet/'
link: '/zh/da/overview',
activeMatch: '/zh/da/'
},
{
text: '去中心化应用',
link: '/zh/dapplink/site-config',
activeMatch: '/zh/wallet/'
link: '/zh/dapps/overview',
activeMatch: '/zh/dapps/'
},
{
text: pkg.version,
Expand All @@ -101,61 +101,71 @@ function sidebarDappLink(): DefaultTheme.SidebarItem[] {
text: '简介',
collapsed: false,
items: [
{ text: '什么是 DappLink ?', link: 'what-is-dapplink-docs' },
{ text: 'DappLink Layer3', link: 'dapplink-layer3' },
{ text: '什么是 DappLink ?', link: 'what-is-dapplink' },
{ text: 'DappLink 核心业务', link: 'core-business' },
]
},
{
text: '一键发钱包',
text: 'DappLink Layer3',
collapsed: false,
items: [
{ text: '什么是一键发钱包', link: 'what-is-dapplink-docs' },
{ text: '什么是 DappLink Layer3 ?', link: 'what-is-dapplink-layer3' },
]
},
{
text: 'DappLink Layer3',
text: '一键发钱包',
collapsed: false,
items: [
{ text: '什么是 DappLink Layer3', link: 'what-is-dapplink-docs' },
{ text: '什么是一键发钱包 ?', link: 'what-is-dapplink-wallet' },
]
},
{
text: '一键发公链',
collapsed: false,
items: [
{ text: '什么是一键发链', link: 'what-is-dapplink-docs' },
{ text: '什么是一键发链', link: 'what-is-dapplink-chain' },
]
},
{
text: '一键发 DA',
collapsed: false,
items: [
{ text: '什么是一键发 DA', link: 'what-is-dapplink-docs' },
{ text: '什么是一键发 DA', link: 'what-is-dapplink-da' },
]
},
{
text: '一键发组合去中心化应用',
text: '一键发去中心化组合应用',
collapsed: false,
items: [
{ text: '什么是组合去中心化应用', link: 'what-is-dapplink-docs' },
{ text: '什么是去中心化组合应用 ?', link: 'what-is-dapplink-dapps' },
]
}
]
}

function sidebarwallet(): DefaultTheme.SidebarItem[] {
function sidebarWallet(): DefaultTheme.SidebarItem[] {
return [
{
text: '一键发钱包',
items: [
{ text: '钱包架构', link: 'overview' },
{ text: '钱包功能模块', link: 'dapplink-wallet' },
{ text: '系统架构', link: 'overview' },
{ text: '核心功能模块', link: 'dapplink-wallet' },
{
text: '项目组成',
base: '/zh/dapplink/default-theme-',
text: '项目组件',
base: '/zh/wallet/',
items: [
{ text: 'wallet-chain-node', link: 'config' },
{ text: 'sky-eye', link: 'nav' },
{ text: '统一浏览器代码库', link: 'chain-explorer-api' },
{ text: '统一 RPC 接口服务', link: 'wallet-chain-node' },
{ text: '密钥托管工具', link: 'key-locker' },
{ text: '门限共享秘密算法的底层库', link: 'dapplink-secret' },
{ text: '行情聚合器物', link: 'skyeye' },
{ text: '交易系统', link: 'trade' },
{ text: '离线签名 SDK', link: 'wallet-sdk' },
{ text: 'MPC 网络', link: 'tss' },
{ text: '跨链质押项目', link: 'linklayer' },
{ text: 'HD 钱包后端服务服务', link: 'hailstone' },
{ text: '统一充值,提现,归集,转冷,风控的钱包服务', link: 'wallet-scanner' },
{ text: '中心化钱包业务组件', link: 'centralized-wallet-servicer' }
]
}
]
Expand Down
3 changes: 3 additions & 0 deletions docs/en/chain/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


3 changes: 3 additions & 0 deletions docs/en/da/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
Empty file.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/en/dapps/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


Empty file.
Empty file.
2 changes: 2 additions & 0 deletions docs/en/wallet/core-function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DappLink Wallet {#dapplink-wallet}

Empty file.
1 change: 0 additions & 1 deletion docs/en/wallet/dapplink-wallet.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# DappLink Wallet {#dapplink-wallet}
Empty file added docs/en/wallet/hailstone.md
Empty file.
Empty file added docs/en/wallet/key-locker.md
Empty file.
Empty file added docs/en/wallet/linklayer.md
Empty file.
1 change: 1 addition & 0 deletions docs/en/wallet/overview.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Overview {#overview}


Empty file added docs/en/wallet/skyeye.md
Empty file.
Empty file added docs/en/wallet/trade.md
Empty file.
Empty file added docs/en/wallet/tss.md
Empty file.
Empty file.
Empty file.
Empty file added docs/en/wallet/wallet-sdk.md
Empty file.
3 changes: 3 additions & 0 deletions docs/zh/chain/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


3 changes: 3 additions & 0 deletions docs/zh/da/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


Empty file.
2 changes: 0 additions & 2 deletions docs/zh/dapplink/dapplink-layer3.md

This file was deleted.

Empty file.
Empty file.
Empty file.
2 changes: 0 additions & 2 deletions docs/zh/dapplink/what-is-dapplink-docs.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/zh/dapplink/what-is-dapplink-layer3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DappLink Layer3

Empty file.
2 changes: 2 additions & 0 deletions docs/zh/dapplink/what-is-dapplink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# What is DappLink?

3 changes: 3 additions & 0 deletions docs/zh/dapps/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Overview {#overview}


Empty file.
Empty file.
2 changes: 2 additions & 0 deletions docs/zh/wallet/core-function.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# DappLink Wallet {#dapplink-wallet}

Empty file.
2 changes: 0 additions & 2 deletions docs/zh/wallet/dapplink-wallet.md
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
# DappLink Wallet {#dapplink-wallet}

Empty file added docs/zh/wallet/hailstone.md
Empty file.
Empty file added docs/zh/wallet/key-locker.md
Empty file.
Empty file added docs/zh/wallet/linklayer.md
Empty file.
Empty file added docs/zh/wallet/skyeye.md
Empty file.
Empty file added docs/zh/wallet/trade.md
Empty file.
Empty file added docs/zh/wallet/tss.md
Empty file.
Empty file.
Empty file.
Empty file added docs/zh/wallet/wallet-sdk.md
Empty file.

0 comments on commit f63a936

Please sign in to comment.