clarity-lang / overview

Overview of the Clarity language for smart contracts
165 stars 31 forks source link

Define a documentation standard #9

Open pors opened 2 years ago

pors commented 2 years ago

As we want contracts to be read and understood as easy as possible, it would be nice to support an improved documentation system for Clarity. Think pydoc or something similar.

Proposal for a very simple and effective doc standard:

A simple parser can then generate an HTML or markdown document that is structured:

All other comments can be read by drilling down inside functions.