-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for the Cadence documentation generator #1003
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1003 +/- ##
==========================================
+ Coverage 75.55% 75.58% +0.02%
==========================================
Files 267 267
Lines 32796 32885 +89
==========================================
+ Hits 24780 24856 +76
- Misses 6898 6908 +10
- Partials 1118 1121 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: Joshua Hannan <[email protected]>
|
||
### Markdown Support | ||
Standard Markdown format is supported in doc-comments, with a bit of Cadence flavour. | ||
This means, any Markdown syntax used within the comments would be honoured and rendered like a standard Markdown snippet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/// This is the description of the function. This function adds two values. | ||
/// | ||
/// @param a: First integer value to add | ||
/// @param b: Second integer value to add | ||
/// @return Addition of the two arguments `a` and `b` | ||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite like this mix 👍
pub fun add(a: Int, b: Int): Int { | ||
} | ||
``` | ||
- When documenting function parameters and return type, avoid mixing parameter/return-type documentations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Bastian Müller <[email protected]>
1481837
to
433b131
Compare
master
branchFiles changed
in the Github PR explorer