Skip to content

Commit 63c5fcf

Browse files
authored
Merge pull request #45 from JuliaGraphs/hw/updatedocs
base tests and docs also on Graphs.jl
2 parents 4afdd37 + 2efd10a commit 63c5fcf

File tree

7 files changed

+19
-23
lines changed

7 files changed

+19
-23
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,14 @@ jobs:
4545
- uses: julia-actions/setup-julia@v1
4646
with:
4747
version: '1'
48-
- run: |
49-
julia --project=docs -e '
50-
using Pkg
51-
Pkg.develop(PackageSpec(path=pwd()))
52-
Pkg.instantiate()'
53-
- run: |
54-
julia --project=docs -e '
55-
using Documenter: DocMeta, doctest
56-
using NetworkLayout
57-
DocMeta.setdocmeta!(NetworkLayout, :DocTestSetup, :(using NetworkLayout); recursive=true)
58-
doctest(NetworkLayout)'
59-
- run: julia --project=docs docs/make.jl
48+
- uses: julia-actions/julia-buildpkg@v1
49+
- uses: julia-actions/julia-docdeploy@v1
6050
env:
6151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6252
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
53+
- run: |
54+
julia --project=docs -e '
55+
using Documenter: DocMeta, doctest
56+
using GraphMakie
57+
DocMeta.setdocmeta!(GraphMakie, :DocTestSetup, :(using GraphMakie); recursive=true)
58+
doctest(GraphMakie)'

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ julia = "1"
1717
[extras]
1818
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
1919
GeometryTypes = "4d00f742-c7ba-57c2-abde-4428a4b178cb"
20-
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
20+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
2121
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2222
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2323

2424
[targets]
25-
test = ["LightGraphs", "Test", "DelimitedFiles", "GeometryTypes"]
25+
test = ["Graphs", "Test", "DelimitedFiles", "GeometryTypes"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ positions` where the positions are represented by the `Point` datatype from
2020

2121
``` julia
2222
using NetworkLayout
23-
using LightGraphs
23+
using Graphs
2424

2525
adj_matrix = adjacency_matrix(wheel_graph(10))
2626

@@ -32,4 +32,4 @@ There is also a "delayed" functor version of each algorithm:
3232
layout = Spring(; iterations=20)
3333
pos = layout(adj_matrix)
3434
```
35-
Instead of passing a adjacency matrix on can also pass `LightGraphs.jl` graphs directly.
35+
Instead of passing a adjacency matrix on can also pass `Graphs.jl` graphs directly.

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
33
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
GraphMakie = "1ecd5474-83a3-4783-bb4f-06765db800d2"
5-
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
5+
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
66
NetworkLayout = "46757867-2c16-5918-afeb-47bfcb05e46a"
77
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Documenter
22
using NetworkLayout
3-
using LightGraphs
3+
using Graphs
44
using GraphMakie
55
using CairoMakie
66

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CairoMakie.activate!(type="png") # hide
1313
set_theme!(resolution=(800, 400)) #hide
1414
CairoMakie.inline!(true) # hide
1515
using NetworkLayout
16-
using GraphMakie, LightGraphs
16+
using GraphMakie, Graphs
1717
nothing #hide
1818
```
1919

@@ -32,7 +32,7 @@ Each of the layouts comes with a lowercase function version:
3232
positions = layoutalgorithm(adj_matrix; p1="foo", b2=:bar)
3333
```
3434

35-
Instead of using the adjacency matrix you can use `AbstractGraph` types from [`LightGraphs.jl`](https://github.com/JuliaGraphs/LightGraphs.jl) directly.
35+
Instead of using the adjacency matrix you can use `AbstractGraph` types from [`Graphs.jl`](https://github.com/JuliaGraphs/Graphs.jl) directly.
3636
```
3737
g = complete_graph(10)
3838
positions = layoutalgorithm(g)

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using NetworkLayout
2-
using LightGraphs
2+
using Graphs
33
using GeometryBasics
44
using DelimitedFiles: readdlm
55
using SparseArrays: sparse
@@ -295,8 +295,8 @@ jagmesh_adj = jagmesh()
295295
end
296296
end
297297

298-
@testset "test LightGraphs glue code" begin
299-
println("Test LightGraphs glue code")
298+
@testset "test Graphs glue code" begin
299+
println("Test Graphs glue code")
300300
g = complete_graph(10)
301301
pos = Spring()(g)
302302
@test pos isa Vector{Point{2,Float64}}

0 commit comments

Comments
 (0)