Zack Williams | 3645191 | 2022-03-04 20:31:37 -0700 | [diff] [blame^] | 1 | Writing Documentation |
| 2 | ===================== |
| 3 | |
| 4 | Documentation is an essential part of any software product. |
| 5 | |
| 6 | 4 Types of Documentation |
| 7 | |
| 8 | This site is an example of **Reference** documentation. |
| 9 | |
| 10 | |
| 11 | Where should I put Documentation? |
| 12 | --------------------------------- |
| 13 | |
| 14 | The README |
| 15 | """""""""" |
| 16 | |
| 17 | Basic **How To** Documentation should go into a README file in each repo: |
| 18 | |
| 19 | 1. A high level summary of what the code in the repo does ("This code is ... ") |
| 20 | |
| 21 | 2. Licensing and community information ("This is developed by ONF as a part of |
| 22 | the FOO project, and licensed under Apache-2") |
| 23 | |
| 24 | 3. High level dependencies required ("Go version 1.17.x is needed to...") |
| 25 | |
| 26 | 4. Examples of how to build the code ("Run ``make build`` to create a binary |
| 27 | named ...") |
| 28 | |
| 29 | 5. Examples of how to run the code ("The output binary can be found in and run |
| 30 | with ...") |
| 31 | |
| 32 | 6. How the code is tested ("Your code should pass ``make test``") |
| 33 | |
| 34 | Generally this should be fairly short and easy to reference |
| 35 | |
| 36 | Design Documents |
| 37 | """""""""""""""" |
| 38 | |
| 39 | Design Documents concern the Why ... |
| 40 | |
| 41 | One option is to place these in the code repo |
| 42 | |
| 43 | |
| 44 | Tutorials |
| 45 | """"""""" |
| 46 | |
| 47 | Operations Guides |
| 48 | """"""""""""""""" |
| 49 | |
| 50 | These show a user **How** to use a project and software. Generally these |
| 51 | should be located in a documentation repo, not stored with code. |
| 52 | |
| 53 | |
| 54 | Project Documentation |
| 55 | """"""""""""""""""""" |