Skip to content

ylinfy/substrate-contracts-book

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

One stop document for Substrate Wasm Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • Stylus 4.0%