Skip to content
Snippets Groups Projects
Commit a89e0756 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil :bicyclist:
Browse files

let's add the docs anyway

parent 848db0d5
No related branches found
No related tags found
No related merge requests found
......@@ -35,3 +35,24 @@ using Test, MyPackageName
@test f() == 123
end
```
# How do I document my code?
Docstrings are automatically sourced and exposed to the help system (and `?`)
```julia
"""
f()
This returns a pretty good randomly chosen constant.
"""
f() = 123
```
Extra packages:
- `Documenter.jl` makes a nice website out of the documentation
- (and uploads it to e.g. github pages)
- `DocStringExtensions.jl` provide some macros to simplify writing docstrings
- (e.g., typesetting of the full function type signature)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment