import { defaultTheme, defineUserConfig,LocaleConfig } from "vuepress";
import BackToTop from "@vuepress/plugin-back-to-top";
import Zoom from "@vuepress/plugin-medium-zoom";
export default defineUserConfig({
    port:3335,
    head: [
        ['meta', { name: 'theme-color', content: '#3eaf7c' }],
        ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
        ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
    ],
    locales:{
        '/guide/': {
          lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性
          title: 'Chain33开发者平台文档',
          description: 'Chain33开发者平台文档',
        },
        '/en/': {
          lang: 'en-US',
          title: 'Chain33 Platform Docs',
          description: 'Chain33 platform  docs'
        },
    },
    theme:defaultTheme({
        sidebarDepth:3,
        sidebar:[
            {
                text: '安装部署',
                link: '/guide/installDeploy/solo',
                collapsible:true,
                children: [

                  '/guide/installDeploy/privateChain',
                  '/guide/installDeploy/consortiumChain',
                  '/guide/installDeploy/parallelChain',
                  '/guide/installDeploy/baas',
                  '/guide/installDeploy/deployEVMContract',
                ]
              },
              {
                text: '使用手册',
                collapsible:true,
                link: '/guide/docs/getBlockchainProgram',
                children: [
                  '/guide/docs/getBlockchainProgram',
                  '/guide/docs/requirement',
                  '/guide/docs/privateProtect',
                  '/guide/docs/cryptoSupport',
                  '/guide/docs/caService',
                  '/guide/docs/caTool',
                  {
                    text: 'DApp开发',
                    link: '/guide/docs/dappIntro',
                    children: [
                      '/guide/docs/dappIntro',
                      '/guide/docs/goDev',
                      '/guide/docs/solDev',
                      '/guide/docs/jsDev',
                    ]
                  },
                  '/guide/docs/cmd',
                  {
                    text: '配置介绍',
                    link: '/guide/docs/configIntro',
                    children: [
                      '/guide/docs/configIntro',
                      '/guide/docs/soloTest',
                      '/guide/docs/bityuanMainNet',
                      '/guide/docs/privateChainConfig',
                      '/guide/docs/parallelChainConfig',
                    ]
                  },
                  {
                    text: '案例介绍',
                    link: '/guide/docs/consortiumToken',
                    children: [
                      '/guide/docs/consortiumToken',
                      '/guide/docs/parallelToken',
                      '/guide/docs/foodTrace',
                      '/guide/docs/exchange',
                      '/guide/docs/videoTutorial',
                    ]
                  },
                  '/guide/docs/performance'
                ]
              },
              {
                text: '系统介绍',
                collapsible:true,
                link: '/guide/systemIntro/innerModel',
                children: [
                  '/guide/systemIntro/innerModel',
                  {
                    text: '系统组成',
                    link: '/guide/systemIntro/p2pModule',
                    children: [
                      '/guide/systemIntro/p2pModule',
                      '/guide/systemIntro/storeModule',
                      '/guide/systemIntro/blockchainModule',
                      '/guide/systemIntro/clientModule',
                      '/guide/systemIntro/mempoolModule',
                      '/guide/systemIntro/consensusModule',
                      '/guide/systemIntro/walletModule',
                      '/guide/systemIntro/executorModule',
                      '/guide/systemIntro/queueModule',
                      '/guide/systemIntro/rpcModule',
                    ]
                  }
                ]
              },
              {
                text: 'JSON-RPC接口',
                collapsible:true,
                link: '/guide/jsonRPCInterface/interface',
                children: [
                  '/guide/jsonRPCInterface/interface',
                  {
                    text: '系统接口',
                    link: '/guide/jsonRPCInterface/transactionAPI',
                    children: [
                      '/guide/jsonRPCInterface/transactionAPI',
                      '/guide/jsonRPCInterface/walletAPI',
                      '/guide/jsonRPCInterface/chain33API',
                      '/guide/jsonRPCInterface/mintAPI',
                      '/guide/jsonRPCInterface/balanceAPI',
                      '/guide/jsonRPCInterface/blockchainAPI',
                      '/guide/jsonRPCInterface/mempoolAPI',
                      '/guide/jsonRPCInterface/executorAPI',
                    ]
                  },
                  {
                    text: '合约接口',
                    link: '/guide/jsonRPCInterface/tokenAPI',
                    children: [
                      '/guide/jsonRPCInterface/tokenAPI',
                      '/guide/jsonRPCInterface/tradeAPI',
                      '/guide/jsonRPCInterface/manageAPI',
                      '/guide/jsonRPCInterface/evmAPI',
                      '/guide/jsonRPCInterface/freezeAPI',
                      '/guide/jsonRPCInterface/multisigAPI',
                      '/guide/jsonRPCInterface/oracleAPI',
                      '/guide/jsonRPCInterface/nodeGroupAPI',
                      '/guide/jsonRPCInterface/retrieveAPI',
                      '/guide/jsonRPCInterface/paracrossAPI',
                      '/guide/jsonRPCInterface/paraMiner',
                      '/guide/jsonRPCInterface/autonomyAPI',
                    ]
                  },
                  '/guide/jsonRPCInterface/errorCode',
                  '/guide/jsonRPCInterface/example',
                ]
              },
              {
                text: 'GRPC接口',
                collapsible:true,
                link: '/guide/grpcAPI/API',
                children: [
                  '/guide/grpcAPI/API',
                  {
                    text: '系统接口',
                    link: '/guide/grpcAPI/transactionAPI',
                    children: [
                      '/guide/grpcAPI/transactionAPI',
                      '/guide/grpcAPI/walletAPI',
                      '/guide/grpcAPI/chain33API',
                      '/guide/grpcAPI/mintAPI',
                      '/guide/grpcAPI/balanceAPI',
                      '/guide/grpcAPI/blockchainAPI',
                      '/guide/grpcAPI/mempoolAPI',
                      '/guide/grpcAPI/executorAPI',
                    ]
                  },
                  {
                    text: '合约接口',
                    link: '/guide/grpcAPI/tokenAPI',
                    children: [
                      '/guide/grpcAPI/tokenAPI',
                      '/guide/grpcAPI/tradeAPI',
                      '/guide/grpcAPI/manageAPI',
                      '/guide/grpcAPI/evmAPI',
                      '/guide/grpcAPI/unfreezeAPI',
                      '/guide/grpcAPI/multisigAPI',
                      '/guide/grpcAPI/oracleAPI',
                      '/guide/grpcAPI/nodegroupAPI',
                      '/guide/grpcAPI/retrieveAPI',
                      '/guide/grpcAPI/paracrossAPI',
                      '/guide/grpcAPI/paraMinerAPI',
                      '/guide/grpcAPI/autonomyAPI',
                    ]
                  }
                ]
              },
              {
                text: '区块链浏览器',
                collapsible:true,
                link: '/guide/blockchainBrowser/commonVersion',
                children: [
                  '/guide/blockchainBrowser/commonVersion',
                  '/guide/blockchainBrowser/openSourceVersion',
                ]
              },
              {
                text: '升级指南',
                collapsible:true,
                link: '/guide/upgradeGuide',
                children: [
                  '/guide/upgradeGuide'
                ]
              },
              {
                text: '币钱包SDK',
                collapsible:true,
                link: '/guide/walletSDK/androidDev',
                children: [
                  '/guide/walletSDK/androidDev',
                  '/guide/walletSDK/iosDev',
                  '/guide/walletSDK/dappDev',
                ]
              },
              'guide/Q&A'
        ]

    })
})