From 9e12400772ee7a0b3492deb7fd92a636a8722e66 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 12:00:41 -0600 Subject: [PATCH] Add cowfile testing Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- docs/Manifest.toml | 10 +++++----- docs/Project.toml | 2 +- docs/make.jl | 1 + docs/src/cows.md | 7 +++++++ docs/src/index.md | 4 ---- src/cows/default.cow.jl | 21 +++++++++++++++++++++ 6 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 docs/src/cows.md diff --git a/docs/Manifest.toml b/docs/Manifest.toml index 4b8f04a..db815bb 100644 --- a/docs/Manifest.toml +++ b/docs/Manifest.toml @@ -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" diff --git a/docs/Project.toml b/docs/Project.toml index 6ad6027..7b594ac 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,3 +1,3 @@ [deps] -Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Cowsay = "b6370f49-8ad1-4651-ad9e-3639b35da0e9" +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" diff --git a/docs/make.jl b/docs/make.jl index 5c58b95..7d5af3f 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -15,6 +15,7 @@ makedocs(; ), pages=[ "Home" => "index.md", + "Available Cowfiles" => "cows.md" ], ) diff --git a/docs/src/cows.md b/docs/src/cows.md new file mode 100644 index 0000000..820e4d3 --- /dev/null +++ b/docs/src/cows.md @@ -0,0 +1,7 @@ +# Cows + +Examples of all the cowfiles available. + +```@docs +Cowsay.default +``` diff --git a/docs/src/index.md b/docs/src/index.md index 86d0bdc..7ab6fb8 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -8,7 +8,3 @@ Documentation for [cowsay](https://github.com/MillironX/cowsay.jl). ```@index ``` - -```@autodocs -Modules = [Cowsay] -``` diff --git a/src/cows/default.cow.jl b/src/cows/default.cow.jl index c16b506..040bbad 100644 --- a/src/cows/default.cow.jl +++ b/src/cows/default.cow.jl @@ -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 = """