You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a fairly common strategy to refer to other functions and contracts by using {} brackets in NatSpec comments. OpenZeppelin does this, for instance:
I wonder why OZ does {Contract-function}, I feel like {Contract.function} is more common? Either way don't feel strongly, and supportive of this feature request 👍
Not sure why OZ decided to go with that format, but I like it. I wouldn't use dot notation in NatSpec comments since I'd prefer to separate actual syntax from documentation references.
I know it's been a while but I want to add support for this feature, would love to be able to automatically hyperlink to other methods/contracts in the docs.
Component
Forge
Describe the feature you would like
It is a fairly common strategy to refer to other functions and contracts by using
{}
brackets in NatSpec comments. OpenZeppelin does this, for instance:I imagine that the algorithm would go something like this in Forge:
{Contract}
: link to the contract page, e.g./src/Contract.sol/contract.Contract.md
{function}
(or{event}
}: relative link in the same document with#
, e.g.#-function
{Contract-function}
: link to the contract page and the function section by adding a#
in the URL, e.g./src/Contract.sol/contract.Contract.md#function
The text was updated successfully, but these errors were encountered: