diff options
| author | Anton Trunov | 2018-11-15 11:27:52 +0100 |
|---|---|---|
| committer | Anton Trunov | 2018-11-15 11:27:52 +0100 |
| commit | 47f6154a7647f44411c41deb6b42642d281a9296 (patch) | |
| tree | bc257de0c94bdb6c32fdbba46b088a63a43b2cc0 /CONTRIBUTING.md | |
| parent | 8c2b4474a29c6213a79676a1e76a8ce936e6f6d6 (diff) | |
Add a section on documenting code
Based on the discussion here:
https://github.com/math-comp/math-comp/pull/242
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 96c3b76..467baff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -129,3 +129,20 @@ Abbreviations are in the header of the file which introduce them. We list here t - `z` -- an int argument #### Typical search pattern `Search _ "prefix" "suffix"* (symbol|pattern)* in library.` + +## Doc style. +### Header documentary comments +We try to document types, definitions and notations precisely, but only describe +the lemmas and theorems in general terms, because we don't want to discourage users +from actually reading the documentation. +There are some exceptions for some particularly important theorems. + +### Commenting source code +The MathComp library uses exclusively block comments, with 80-character lines +enclosed in the `(*` / `*)` delimiters, e.g. +``` +(* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit *) +(* tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt *) +(* et, mattis eget, convallis nec, purus. *) +``` +Multiline comments are strictly limited to out-commented code. |
