Add cowfile testing

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 12:00:41 -06:00
parent 880618346b
commit 9e12400772
Signed by: millironx
GPG key ID: 139C07724802BC5D
6 changed files with 35 additions and 10 deletions

View file

@ -8,6 +8,11 @@ version = "0.0.1"
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[Cowsay]]
path = "/home/tchristensen/src/cowsay"
uuid = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
version = "0.1.0"
[[Dates]]
deps = ["Printf"]
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
@ -90,8 +95,3 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[[Unicode]]
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
[[Cowsay]]
path = ".."
uuid = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
version = "0.1.0"

View file

@ -1,3 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Cowsay = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

View file

@ -15,6 +15,7 @@ makedocs(;
),
pages=[
"Home" => "index.md",
"Available Cowfiles" => "cows.md"
],
)

7
docs/src/cows.md Normal file
View file

@ -0,0 +1,7 @@
# Cows
Examples of all the cowfiles available.
```@docs
Cowsay.default
```

View file

@ -8,7 +8,3 @@ Documentation for [cowsay](https://github.com/MillironX/cowsay.jl).
```@index
```
```@autodocs
Modules = [Cowsay]
```

View file

@ -1,3 +1,24 @@
"""
function default()
The original cowfile
# Example
```jldoctest
julia> cowsay("Moo", cow=Cowsay.default)
_____
< Moo >
-----
\\ ^__^
\\ (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||
```
"""
function default(;eyes="oo", tongue=" ", thoughts="\\")
thecow =
"""