|
5 | 5 |
|
6 | 6 | ## Guide to contributing documentation |
7 | 7 | ### File header |
8 | | -TBD |
| 8 | +Every file should have an header like this: |
| 9 | + |
| 10 | +<pre> |
| 11 | +/** |
| 12 | + * @file math.asm |
| 13 | + * @brief Math module |
| 14 | + * @details Simple macros for math operations. |
| 15 | + * |
| 16 | + * @author Raffaele Intorcia < a href= "https://github.com/intoinside">@intoinside</ a> [email protected] |
| 17 | + * |
| 18 | + * @copyright MIT License |
| 19 | + * Copyright (c) 2024 c128lib - https://github.com/c128lib |
| 20 | + * |
| 21 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 22 | + * of this software and associated documentation files (the "Software"), to deal |
| 23 | + * in the Software without restriction, including without limitation the rights |
| 24 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 25 | + * copies of the Software, and to permit persons to whom the Software is |
| 26 | + * furnished to do so, subject to the following conditions: |
| 27 | + * |
| 28 | + * The above copyright notice and this permission notice shall be included in all |
| 29 | + * copies or substantial portions of the Software. |
| 30 | + * |
| 31 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 32 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 33 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 34 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 35 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 36 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 37 | + * SOFTWARE. |
| 38 | + * |
| 39 | + * @date 2024 |
| 40 | + */ |
| 41 | +</pre> |
| 42 | + |
| 43 | +* a @brief keyword with a short description (typically one or two line) |
| 44 | +* a @details keyword (optional) with a longer description, with some hint about code used and comparison with similar code |
| 45 | +* one or more @author keyword with name, Github profile link and email |
| 46 | +* a @date keyword indicating year of creating file |
9 | 47 |
|
10 | 48 | ### Subroutine and macro header |
11 | 49 | Every subroutine and macro should have an header like this: |
|
0 commit comments