Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sambacha/go-natspec

generate html docs from solidity natspec
https://github.com/sambacha/go-natspec

ethereum natspec solidity

Last synced: 25 days ago
JSON representation

generate html docs from solidity natspec

Awesome Lists containing this project

README

        

# [go-natspec](#)

## Requirements

- Pygments installed.
- Pygments solidity lexer available

### macOS

```shell
brew install pygments
```

[https://gitlab.com/veox/pygments-lexer-solidity/-/blob/master/pygments_lexer_solidity/lexer.py](https://gitlab.com/veox/pygments-lexer-solidity/-/blob/master/pygments_lexer_solidity/lexer.py)

## Usage

```shell
wget https://github.com/sambacha/go-natspec/releases/download/v0.0.1/dappspec
chmod +x dappspec
./dappspec test.sol
> dappspec: test.sol -> docs/test.html
serve docs/
--> http://localhost:3000/test
```

Download binary.
use binary on Solidity file.
documents generated to docs/ dir (make sure this exists).