Skip to content

HotPotFund/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotPot Fund Docs Website

This website is built using gitbook, a modern static website generator.

How to add a new page

Create a markdown file in its respective language directory.

Installation gitbook and plugins

Install gitbook-cli

npm install gitbook-cli -g

Install gitbook plugins

gitbook install

Local Development

gitbook serve

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

gitbook build

This command generates static content into the _book directory and can be served using any static contents hosting service.

Other document generation methods

How to generate markdown files from solidity Natspec comments

Install solidity doc gen npm install solidity-docgen

Get the correct compiler version npm install -D solc-0.7@npm:[email protected]

Put the updated template contract.hbs in a /templates folder under the same directory as /contracts that you want to generate

Run npx solidity-docgen --solc-module solc-0.7 -t ./templates

How to gernerate markdown files from typescript commments

npm install --save-dev typedoc typedoc-plugin-markdown

typedoc --out <docs> src/index.ts

see https://www.npmjs.com/package/typedoc-plugin-markdown for details

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages