solidity-docgen
Documentation generator for smart contract libraries. Use the inline
documentation in your Solidity code for generating websites or any sort of
document.
The output is completely customizable through Handlebars templates that provide
easy access to all the metadata of your smart contract.
Usage
Note: Detailed usage information is not available yet. Please be patient!
npm install solidity-docgen
solidity-docgen
takes as input a directory of contracts and README
documents. This directory is specified using the --input
/-i
flag,
defaulting to ./contracts
. It produces a set of files that it will place in
the output directory specified by --output
/-o
, defaulting to ./docs
.
solidity-docgen [ -i <input-dir> ] [ -o <output-dir> ] [ -t <templates-dir> ]
0.5.2, 0.5.3
- Changed
--solc-module
option to use Node module resolution algorithm.
For example, if you've installed solc@0.5
alongside solidity-docgen
, you
can now run solidity-docgen --solc-module solc
.
This is a small breaking change. If you were using this option before, you need
to make sure its value is now something that Node recognizes as a module, such
as the name of an installed Node module or a path beginning with ./
, ../
,
or /
.