Skip to content

Commit 1a84eae

Browse files
authored
Update Documenter to v1
1 parent 655ca3c commit 1a84eae

File tree

3 files changed

+8
-27
lines changed

3 files changed

+8
-27
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/Manifest.toml
22
docs/build/
33
.vscode/settings.json
4-
docs/src/tutorial/*.md
4+
docs/src/tutorial/*.md
5+
docs/Manifest.toml

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
66
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
77
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
88
MetaGraphsNext = "fa8bd995-216d-47f1-8a91-f3b68fbeb377"
9+
10+
[compat]
11+
Documenter = "1"

docs/make.jl

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,42 +23,19 @@ for file in readdir(TUTORIAL_DIR_JL)
2323
)
2424
end
2525

26-
function markdown_title(path)
27-
title = "?"
28-
open(path, "r") do file
29-
for line in eachline(file)
30-
if startswith(line, '#')
31-
title = strip(line, [' ', '#'])
32-
break
33-
end
34-
end
35-
end
36-
return String(title)
37-
end
38-
3926
pages = [
4027
"Home" => "index.md",
4128
"Tutorial" => [
42-
markdown_title(joinpath(TUTORIAL_DIR_MD, file)) => joinpath("tutorial", file)
43-
for file in sort(readdir(TUTORIAL_DIR_MD)) if endswith(file, ".md")
29+
joinpath("tutorial", file) for file in sort(readdir(TUTORIAL_DIR_MD)) if endswith(file, ".md")
4430
],
4531
"API reference" => "api.md",
4632
]
4733

4834
makedocs(;
4935
sitename="MetaGraphsNext.jl",
5036
modules=[MetaGraphsNext],
51-
doctest=true,
5237
pages=pages,
53-
format=Documenter.HTML(;
54-
prettyurls=get(ENV, "CI", "false") == "true",
55-
canonical="https://juliagraphs.org/MetaGraphsNext.jl/dev/",
56-
assets=String[],
57-
edit_link=:commit,
58-
),
59-
checkdocs=:all,
60-
linkcheck=true,
61-
strict=true,
38+
format=Documenter.HTML(),
6239
)
6340

64-
deploydocs(; repo="github.com/JuliaGraphs/MetaGraphsNext.jl.git")
41+
deploydocs(; repo="github.com/JuliaGraphs/MetaGraphsNext.jl")

0 commit comments

Comments
 (0)