Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jul 13, 2023
1 parent 763a520 commit 34cf23e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6.7' # LTS
- '1' # automatically expands to the latest stable 1.x release of Julia
os:
- ubuntu-latest
Expand Down
19 changes: 8 additions & 11 deletions src/Cobweb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ function __init__()
pushdisplay(CobwebDisplay())
end

#-----------------------------------------------------------------------------# Units
# module Units
# for u in [:ch,:cm,:em,:ex,:fr,:in,:mm,:pc,:percent,:pt,:px,:rem,:vh,:vmax,:vmin,:vw]
# @eval begin
# export $u
# struct $u end
# Base.:*(x::Number, ::Type{$u}) = string(x, $(QuoteNode(u)))
# end
# @eval $u(x::Number) = $u(x)
# end
# end

#-----------------------------------------------------------------------------# Node
"""
Expand Down Expand Up @@ -218,6 +207,14 @@ Base.show(io::IO, ::MIME"text/html", o::CSS) = show(io, h.style(repr("text/css",
save(file::String, o::CSS) = save(o, file)
save(o::CSS, file::String) = open(io -> show(io, x), touch(file), "w")

#-----------------------------------------------------------------------------# CSSUnits
baremodule CSSUnits
using Base: @eval, string
for k in [:ch,:cm,:em,:ex,:fr,:in,:mm,:pc,:percent,:pt,:px,:rem,:vh,:vmax,:vmin,:vw]
@eval ($k = string($(QuoteNode(k))); export $k)
end
end

#-----------------------------------------------------------------------------# Doctype
struct Doctype
content::String
Expand Down

0 comments on commit 34cf23e

Please sign in to comment.