0

How do I convert Natspec into something that a human can easily read?

Eg: HTML, Markdown, .PDF

3 Answers 3

3

This appears to generate HTML documentation directly from your natspec'd code:

https://github.com/DigixGlobal/doxity

1
  • Unfortunately this library is no longer maintained and support for the latest version of Solidity is not present. Commented Nov 11, 2019 at 17:09
1

As per the User Documentation on the Natspec page, the output is just a JSON blob.

You could feed this JSON output into a conversion tool, e.g.:

1

I have released a plugin for Hardhat which generates a Vue static site from NatSpec comments: https://github.com/ItsNickBarry/hardhat-docgen

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.