File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Documentation
2+
13## Documentation
24
3- - README
4- - User Docs
5- - Dev Docs
6- - Comments?
5+ - Not all information can be conveyed in code
6+ - We need to tell other people how to use our projects
7+ - And sometimes ourselves!
8+ - Documentation covers anything outside of the code/metadata
9+
10+ ## README
11+
12+ - Markdown file at the project root
13+ - Should contain:
14+ - Description of project
15+ - Dependencies
16+ - Instructions on building/running
17+
18+ ## Comments
19+
20+ - Comments in code are also another form of documentation
21+ - Comments should:
22+ - Explain * why* the code is doing something
23+ - Give context that is external to the scope
24+
25+ ## Generating Docs
26+
27+ - Use tools that generate docs from source code
28+ - Single source of truth
29+ - Comments/Docstrings embedded in code
30+ - Reduce separation between code and docs
You can’t perform that action at this time.
0 commit comments