From 504950462d68360f272720cff291f5714e285d48 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Mon, 9 Dec 2024 16:31:52 +0100 Subject: [PATCH] Update Runic to version 1.2. (#2615) --- .github/workflows/CI.yml | 2 +- src/documents.jl | 4 ++-- test/docsystem.jl | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6b805bcf08..39df314b32 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -222,7 +222,7 @@ jobs: - uses: julia-actions/cache@v2 - uses: fredrikekre/runic-action@v1 with: - version: '1.0.0' + version: '1.2' typos: name: Spell Check with Typos diff --git a/src/documents.jl b/src/documents.jl index 0381e1ceae..121ad5468b 100644 --- a/src/documents.jl +++ b/src/documents.jl @@ -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 @@ -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 diff --git a/test/docsystem.jl b/test/docsystem.jl index ec059e58a9..ea5ae42df3 100644 --- a/test/docsystem.jl +++ b/test/docsystem.jl @@ -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