-
Notifications
You must be signed in to change notification settings - Fork 6
Documentation guidelines #12
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
base: master
Are you sure you want to change the base?
Conversation
closing marker of a multiline comment can appear either on a separate line or | ||
immediately after the final line of the docstring body. | ||
|
||
During the process of generting doc pages, all docstring are concatenated |
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.
During the process of generting doc pages, all docstring are concatenated | |
During the process of generating doc pages, all docstring are concatenated |
@param f Folding function. Receives an additional index argument. | ||
@param xs List to be folded. | ||
|
||
@returns The result of iterativately applied folding operation. |
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.
@returns The result of iterativately applied folding operation. | |
@returns The result of the iteratively applied folding operation. |
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.
Further spell check/proofread
|
||
During the process of generting doc pages, all docstring are concatenated | ||
to a single, continuous markdown file. Even though it is possible, we advise | ||
against splitting markdown constructs like tables across multiple docstring. |
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.
against splitting markdown constructs like tables across multiple docstring. | |
against splitting markdown constructs like tables across multiple docstrings. |
If applied to empty list, it calls implicit function `~onError`. | ||
It also allows overriding the starting value of the iterator index `i`. | ||
|
||
Even though, the type is quite ellaborate, documentation is straightforward. |
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.
Even though, the type is quite ellaborate, documentation is straightforward. | |
Even though, the type is quite elaborate, documentation is straightforward. |
### Int64 | ||
|
||
`Int64` is a builtin type, which means that the there is no declaration | ||
of this type in Prelude. Fortunatelly, scoping allows us to add docstring |
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.
of this type in Prelude. Fortunatelly, scoping allows us to add docstring | |
of this type in Prelude. Fortunately, scoping allows us to add docstring |
## # Main header | ||
|
||
{## | ||
This is an example docstring with markdown table: |
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 an example docstring with markdown table: | |
This is an example docstring with a markdown table: |
be written separately and explicitly linked to the intended code element using | ||
an identifier. | ||
|
||
In such cases, docstrings are mandatorily multiline and apropriete identifiers |
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.
In such cases, docstrings are mandatorily multiline and apropriete identifiers | |
In such cases, docstrings are mandatorily multiline and apropriate identifiers |
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.
Some grammar mistakes.
to that definition. The first continuous block of text is treated as a brief | ||
description. After an empty line, a more detailed explanation may be added. | ||
|
||
Additionally `@param`, `@asserts` and `@return` labels are supported in |
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.
Additionally `@param`, `@asserts` and `@return` labels are supported in | |
Additionally, `@param`, `@asserts`, and `@return` labels are supported in |
We use Oxford commas everywhere in dbl
comments, so let's keep things consistent
|
||
## Guidelines | ||
|
||
To ensure good and consistent quality, follow specified these guidelines: |
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.
To ensure good and consistent quality, follow specified these guidelines: | |
To ensure good and consistent quality, follow these guidelines: |
- Sentences should be written in Present Simple tense, | ||
although sometimes it is necessary to deviate from that. | ||
- End every sentence with a period. | ||
- Avoid using function name as noun and verb in the same sentence. |
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.
- Avoid using function name as noun and verb in the same sentence. | |
- Avoid using the function name as a noun and a verb in the same sentence. |
although sometimes it is necessary to deviate from that. | ||
- End every sentence with a period. | ||
- Avoid using function name as noun and verb in the same sentence. | ||
Specifically don't write descriptions like "`map` maps ..." and |
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.
Specifically don't write descriptions like "`map` maps ..." and | |
Specifically, don't write descriptions like "`map` maps ..." and |
If applied to empty list, it calls implicit function `~onError`. | ||
It also allows overriding the starting value of the iterator index `i`. | ||
|
||
Even though, the type is quite ellaborate, documentation is straightforward. |
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.
Even though, the type is quite ellaborate, documentation is straightforward. | |
Even though the type is quite elaborate, documentation is straightforward. |
Folds list into a single value, using the last element of list as the initial | ||
accumulator and passing index of each processed element. | ||
|
||
Allows overriding initial value of iterator. When applied | ||
to empty list, calls implicit `~onError` function. |
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.
Folds list into a single value, using the last element of list as the initial | |
accumulator and passing index of each processed element. | |
Allows overriding initial value of iterator. When applied | |
to empty list, calls implicit `~onError` function. | |
Folds the list into a single value, using the last element of list as the initial | |
accumulator and passing index of each processed element. | |
Allows overriding the initial value of the iterator. When applied | |
to an empty list, calls implicit `~onError` function. |
No description provided.