Add cowfile testing
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
880618346b
commit
9e12400772
6 changed files with 35 additions and 10 deletions
|
@ -8,6 +8,11 @@ version = "0.0.1"
|
||||||
[[Base64]]
|
[[Base64]]
|
||||||
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||||
|
|
||||||
|
[[Cowsay]]
|
||||||
|
path = "/home/tchristensen/src/cowsay"
|
||||||
|
uuid = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
[[Dates]]
|
[[Dates]]
|
||||||
deps = ["Printf"]
|
deps = ["Printf"]
|
||||||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||||
|
@ -90,8 +95,3 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
||||||
|
|
||||||
[[Unicode]]
|
[[Unicode]]
|
||||||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
||||||
|
|
||||||
[[Cowsay]]
|
|
||||||
path = ".."
|
|
||||||
uuid = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
|
|
||||||
version = "0.1.0"
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[deps]
|
[deps]
|
||||||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
|
||||||
Cowsay = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
|
Cowsay = "b6370f49-8ad1-4651-ad9e-3639b35da0e9"
|
||||||
|
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
||||||
|
|
|
@ -15,6 +15,7 @@ makedocs(;
|
||||||
),
|
),
|
||||||
pages=[
|
pages=[
|
||||||
"Home" => "index.md",
|
"Home" => "index.md",
|
||||||
|
"Available Cowfiles" => "cows.md"
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
7
docs/src/cows.md
Normal file
7
docs/src/cows.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Cows
|
||||||
|
|
||||||
|
Examples of all the cowfiles available.
|
||||||
|
|
||||||
|
```@docs
|
||||||
|
Cowsay.default
|
||||||
|
```
|
|
@ -8,7 +8,3 @@ Documentation for [cowsay](https://github.com/MillironX/cowsay.jl).
|
||||||
|
|
||||||
```@index
|
```@index
|
||||||
```
|
```
|
||||||
|
|
||||||
```@autodocs
|
|
||||||
Modules = [Cowsay]
|
|
||||||
```
|
|
||||||
|
|
|
@ -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="\\")
|
function default(;eyes="oo", tongue=" ", thoughts="\\")
|
||||||
thecow =
|
thecow =
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue