Skip to content

Commit 776f17c

Browse files
authored
Use Documenter.jl PR #2925 as dependency (#3)
1 parent 2af1bf6 commit 776f17c

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎Project.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2020

2121
[targets]
2222
test = ["Test"]
23+
24+
[sources]
25+
Documenter = {url = "https://github.com/fonsp/Documenter.jl", rev = "assets-HTML-type"}

‎src/domify.jl‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,20 @@ _is_absolute_url(s::AbstractString) =
4444
startswith(s, "http://") || startswith(s, "https://") || startswith(s, "//") || startswith(s, "/")
4545

4646
# Minimal JS string literal: JSON encoding is a superset of JS-string syntax for
47-
# our purposes (URLs), and Julia's repr() for String happens to produce a valid
48-
# JS string too. Use repr.
47+
# our purposes (URLs), and Julia's repr() for String happens to produce a valid JS string too. Use repr.
48+
49+
struct JSLiteral
50+
x
51+
end
52+
53+
4954
_js_string(s::AbstractString) = repr(s)
5055
_js_string(s::Nothing) = "undefined"
5156
_js_string(s::Bool) = repr(s)
5257
_js_string(s::Number) = repr(s)
5358
_js_string(s::JSLiteral) = s.x
5459

55-
struct JSLiteral
56-
x
57-
end
60+
5861

5962

6063

0 commit comments

Comments
 (0)