primitive-dodoc icon indicating copy to clipboard operation
primitive-dodoc copied to clipboard

Support for @custom tag

Open 0x6080 opened this issue 2 years ago • 1 comments

While the standard comment tags (@notice, @dev, ..) work great, Solidity also provides support for @custom:<something>.

Although everyone's use-case will be slightly different from custom tag, it would be super helpful to get a how-to on how to add a custom tag support to docusaurus.sqrl, or even provide sample ones for a common custom tags such as for the events emitted from a function.

0x6080 avatar Mar 06 '22 17:03 0x6080

That's a good idea, I'm still not sure how to implement this though. Maybe the easiest way is to add custom tags to the JSON blob object generated by Dodoc and then let templates display these tags the way they want.

clemlak avatar Mar 07 '22 05:03 clemlak