Skip to content

Commit

Permalink
Update Runic to version 1.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Dec 9, 2024
1 parent c955fe8 commit 63f97ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
- uses: julia-actions/cache@v2
- uses: fredrikekre/runic-action@v1
with:
version: '1.0.0'
version: '1.1'

typos:
name: Spell Check with Typos
Expand Down
4 changes: 2 additions & 2 deletions src/documents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ function populate!(index::IndexNode, document::Document)
pagesmap = precedence(index.pages)
modulesmap = precedence(index.modules)
ordermap = precedence(index.order)
comparison = function(a, b)
comparison = function (a, b)
(x = _compare(pagesmap, 3, a, b)) == 0 || return x < 0 # page
(x = _compare(modulesmap, 4, a, b)) == 0 || return x < 0 # module
(x = _compare(ordermap, 5, a, b)) == 0 || return x < 0 # category
Expand All @@ -1014,7 +1014,7 @@ function populate!(contents::ContentsNode, document::Document)
end
# Sorting contents links.
pagesmap = precedence(contents.pages)
comparison = function(a, b)
comparison = function (a, b)
(x = _compare(pagesmap, 2, a, b)) == 0 || return x < 0 # page
return a[1] < b[1] # anchor order
end
Expand Down
16 changes: 8 additions & 8 deletions test/docsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ end
@test (fieldnames(DocSystem.DocStr)...,) == (:text, :object, :data)
## `getdocs`.
let b = DocSystem.binding(DocSystem, :getdocs),
d_0 = DocSystem.getdocs(b, Tuple{}),
d_1 = DocSystem.getdocs(b),
d_2 = DocSystem.getdocs(b, Union{Tuple{Any}, Tuple{Any, Type}}; compare = (==)),
d_3 = DocSystem.getdocs(b; modules = Module[Main]),
d_4 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs)),
d_5 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs); aliases = false),
d_6 = DocSystem.getdocs(b, Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}}; compare = (==)),
d_7 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs), Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}})
d_0 = DocSystem.getdocs(b, Tuple{}),
d_1 = DocSystem.getdocs(b),
d_2 = DocSystem.getdocs(b, Union{Tuple{Any}, Tuple{Any, Type}}; compare = (==)),
d_3 = DocSystem.getdocs(b; modules = Module[Main]),
d_4 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs)),
d_5 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs); aliases = false),
d_6 = DocSystem.getdocs(b, Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}}; compare = (==)),
d_7 = DocSystem.getdocs(DocSystem.binding(@__MODULE__, :alias_of_getdocs), Union{Tuple{Docs.Binding}, Tuple{Docs.Binding, Type}})

@test length(d_0) == 0
@test length(d_1) == 2
Expand Down

0 comments on commit 63f97ff

Please sign in to comment.