
import { defaultTheme, defineUserConfig } from "vuepress";
import BackToTop from "@vuepress/plugin-back-to-top";
import Zoom from "@vuepress/plugin-medium-zoom";
export default defineUserConfig({
  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: (
    {
        selectText: '选择语言',
        label: '简体中文',
        editLinks: false,
        lastUpdated: false,
        sidebar: [
          '/guide/',
          {
            text: '安装部署',
            link: '/guide/installDeploy/solo',
            children: [
              {
                text: '搭建单节点主链',
                link: '/guide/installDeploy/solo',
                children: [
                  '/guide/installDeploy/solo',
                  '/guide/installDeploy/docker'
                ]
              },
              '/guide/installDeploy/privateChain',
              '/guide/installDeploy/consortiumChain',
              '/guide/installDeploy/parallelChain',
              '/guide/installDeploy/baas',
              '/guide/installDeploy/deployEVMContract',
            ]
          },
          {
            text: '使用手册',
            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: '系统介绍',
            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接口',
            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接口',
            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: '区块链浏览器',
            link: '/guide/blockchainBrowser/commonVersion',
            children: [
              '/guide/blockchainBrowser/commonVersion',
              '/guide/blockchainBrowser/openSourceVersion',
            ]
          },
          {
            text: '升级指南',
            link: '/guide/upgradeGuide',
            children: [
              '/guide/upgradeGuide'
            ]
          },
          '/guide/sdk',
          {
            text: '币钱包SDK',
            link: '/guide/walletSDK/androidDev',
            children: [
              '/guide/walletSDK/androidDev',
              '/guide/walletSDK/iosDev',
              '/guide/walletSDK/dappDev',
            ]
          },
          'guide/Q&A'
        ]

      },
      '/en/': {
        selectText: 'Languages',
        label: 'English',
        editLinks: false,
        lastUpdated: false,
        ariaLabel: 'Languages',
        sidebar: [
          '/en/',
          '/en/quickStart',
          '/en/envPreparation',
          {
            text: 'Developer Guide',
            link: '/en/developerGuide/architecture',
            children: [
              '/en/developerGuide/architecture',
              {
                text: 'DApp Development',
                link: '/en/developerGuide/dappDevlopment/intro',
                children: [
                  '/en/developerGuide/dappDevlopment/intro',
                  '/en/developerGuide/dappDevlopment/go',
                  '/en/developerGuide/dappDevlopment/sol',
                  '/en/developerGuide/dappDevlopment/js'
                ]
              },
              {
                text: 'deployment',
                link: '/en/developerGuide/deployment/privateChain',
                children: [
                  '/en/developerGuide/deployment/privateChain',
                  '/en/developerGuide/deployment/allianceChain',
                  '/en/developerGuide/deployment/parallelChain',
                ]
              },
              {
                text: 'Configuration Files',
                link: '/en/developerGuide/configFiles/singleNodeSoloTestEnv',
                children: [
                  '/en/developerGuide/configFiles/singleNodeSoloTestEnv',
                  '/en/developerGuide/configFiles/btyMainNetworkEnv',
                  '/en/developerGuide/configFiles/btyTestNetworkEnv',
                  '/en/developerGuide/configFiles/allianceChainEnv',
                  '/en/developerGuide/configFiles/privateChainEnv',
                  '/en/developerGuide/configFiles/parallelChainEnv',
                ]
              },
              {
                text: 'System Composition',
                link: '/en/developerGuide/systemComposition/p2pModule',
                children: [
                  '/en/developerGuide/systemComposition/p2pModule',
                  '/en/developerGuide/systemComposition/storageModule',
                  '/en/developerGuide/systemComposition/blockchainModule',
                  '/en/developerGuide/systemComposition/clientModule',
                  '/en/developerGuide/systemComposition/mempoolModule',
                  '/en/developerGuide/systemComposition/consensusModule',
                  '/en/developerGuide/systemComposition/walletModule',
                  '/en/developerGuide/systemComposition/executorModule',
                  '/en/developerGuide/systemComposition/queueModule',
                  '/en/developerGuide/systemComposition/rpcModule',
                ]
              },
              {
                text: 'Case Introduction',
                link: '/en/developerGuide/caseIntroduction/allianceChainIssueToken',
                children: [
                  '/en/developerGuide/caseIntroduction/allianceChainIssueToken',
                  '/en/developerGuide/caseIntroduction/parallelChainIssueToken',
                  '/en/developerGuide/caseIntroduction/foodTraceability',
                ]
              }
            ]
          },
          {
            text: 'RPC Interface',
            link: '/en/rpcInterface/interfaceConventions',
            children: [
              '/en/rpcInterface/interfaceConventions',
              {
                text: 'System Interface',
                link: '/en/rpcInterface/systemInterface/transaction',
                children: [
                  '/en/rpcInterface/systemInterface/transaction',
                  '/en/rpcInterface/systemInterface/wallet',
                  '/en/rpcInterface/systemInterface/chain33System',
                  '/en/rpcInterface/systemInterface/mining',
                  '/en/rpcInterface/systemInterface/balanceInquiry',
                  '/en/rpcInterface/systemInterface/blockchain',
                  '/en/rpcInterface/systemInterface/mempool',
                ]
              },
              {
                text: 'System Contract',
                link: '/en/rpcInterface/systemContract/token',
                children: [
                  '/en/rpcInterface/systemContract/token',
                  '/en/rpcInterface/systemContract/trade',
                  '/en/rpcInterface/systemContract/manage',
                  '/en/rpcInterface/systemContract/evm',
                  '/en/rpcInterface/systemContract/unfreeze',
                  '/en/rpcInterface/systemContract/multiSignature',
                  '/en/rpcInterface/systemContract/oracle',
                  '/en/rpcInterface/systemContract/nodegroup',
                  '/en/rpcInterface/systemContract/retrieve',
                ]
              },
              '/en/rpcInterface/errorCode',
            ]
          },
          {
            text:'Upgrade Guide',
            link:'/en/upgradeGuide/chain33ParallelChainUpgradeRegulation',
            children:[
              '/en/upgradeGuide/chain33ParallelChainUpgradeRegulation',
              '/en/upgradeGuide/parallelChainUpgrade'
            ]
          },
          '/en/q&a'
        ]
      },
  }),
  plugins: [
    BackToTop(),
    Zoom(),
  ]
})
