Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.36 KB

README.md

File metadata and controls

66 lines (53 loc) · 1.36 KB

Substrate Contracts Book

This is the source repo to build "Substrate Contracts Book".

Currently, everyone can access our book from here:

Install

This repo is build by vuepress

First you should install nodejs

The second step is to install dependencies

use npm

$ npm install

use yarn

$ npm i -g yarn
$ yarn install

Sidebar configuration

Sidebar 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'
    ]
  }
]

Develop

$ yarn dev

Build

$ yarn build

Publish to gh-pages

use github-pages-deploy-action to deploy