Skip to content

Commit 1866101

Browse files
committed
Fix docs
1 parent a4d766a commit 1866101

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

docs/Manifest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
160160
version = "2.28.0+0"
161161

162162
[[deps.MetaGraphsNext]]
163-
deps = ["Graphs", "JLD2"]
163+
deps = ["Graphs", "JLD2", "SimpleTraits"]
164164
path = ".."
165165
uuid = "fa8bd995-216d-47f1-8a91-f3b68fbeb377"
166-
version = "0.4.1"
166+
version = "0.5.0"
167167

168168
[[deps.Mmap]]
169169
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

docs/make.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ makedocs(;
5656
assets=String[],
5757
edit_link=:commit,
5858
),
59+
checkdocs=:all,
60+
linkcheck=true,
5961
)
6062

6163
deploydocs(; repo="github.com/JuliaGraphs/MetaGraphsNext.jl.git")

test/tutorial/1_basics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ weighted[:alice, :bob] = 2.0;
168168
weighted[:bob, :charlie] = 3.0;
169169
#-
170170
weight_matrix = Graphs.weights(weighted)
171-
@test @inferred Graphs.weights(weighted) == weight_matrix
171+
@test @inferred Graphs.weights(weighted) == weight_matrix #src
172172
#-
173173
default_weight(weighted)
174174
@test @inferred default_weight(weighted) Inf #src
@@ -186,7 +186,7 @@ weight_matrix[1, 3]
186186
@test @inferred weight_matrix[1, 3] Inf #src
187187
#-
188188
wf = get_weight_function(weighted)
189-
@test @inferred get_weight_function(weighted) == wf
189+
@test @inferred get_weight_function(weighted) == wf #src
190190
wf(4.0)
191191
@test @inferred wf(4.0) 16.0 #src
192192

test/tutorial/2_graphs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ cities[:Paris, :Berlin] = 878;
3434
is_directed(cities)
3535
@test @inferred !is_directed(cities) #src
3636
@test !istrait(IsDirected{typeof(cities)}) #src
37-
@test MetaGraphsNext.arrange(cities, :London, :Paris) == (:Paris, :London)
37+
@test MetaGraphsNext.arrange(cities, :London, :Paris) == (:Paris, :London) #src
3838
#-
3939
eltype(cities)
4040
@test @inferred eltype(cities) == Int #src
@@ -135,7 +135,7 @@ haskey(reverse(rock_paper_scissors), :scissors, :rock)
135135
# Finally, let us take a subgraph:
136136

137137
rock_paper, _ = induced_subgraph(rock_paper_scissors, [1, 2])
138-
@test @inferred induced_subgraph(rock_paper_scissors, [1, 2])[1] == rock_paper
138+
@test @inferred induced_subgraph(rock_paper_scissors, [1, 2])[1] == rock_paper #src
139139
#-
140140
issubset(rock_paper, rock_paper_scissors)
141141
@test @inferred issubset(rock_paper, rock_paper_scissors) #src

0 commit comments

Comments
 (0)