This is the source repo to build "Tetcore Contracts Book".
Currently, everyone can access our book from here:
- 中文:《Substrate 合约书》
- English: <Substrate Contracts Book> (not yet now, need translation)
This repo is build by vuepress
First you should install nodejs
The second step is to install dependencies
use npm
$ npm installuse yarn
$ npm i -g yarn
$ yarn installSidebar config file is in src/.vuepress/config, sidebar-en.js is english, sidebar-zh.js is chinese
[
{
title: 'Group 1', // Required
path: '/introduction', // Required, The path to jump
collapsable: false, // Required, set it to false
children: [
'/contracts/overview',
'/contracts/model',
'/contracts/language',
'/contracts/wasm_first_step'
]
},
{
title: 'Group 2', // Required
path: '/foo/', // Required, The path to jump
collapsable: false, // Required, set it to false
children: [
'/ink/tutorial'
]
}
]$ yarn dev
$ yarn builduse github-pages-deploy-action to deploy