Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
393 changes: 65 additions & 328 deletions README.md

Large diffs are not rendered by default.

45 changes: 36 additions & 9 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
using Documenter
using LocalMath

pages = [
"Home" => "index.md",
"Quick start" => "learn/localmath-quickstart.md",
"Relations and storage" => "learn/localmath-relations.md",
"Scientific recipes" => "learn/localmath-recipes.md",
"Troubleshooting" => "learn/localmath-troubleshooting.md",
"Domain compilers" => "learn/localmath-domain-compiler.md",
"API" => "api/localmath.md",
]

function documented_pages(items)
paths = String[]
for item in items
value = item isa Pair ? last(item) : item
if value isa AbstractString
push!(paths, String(value))
else
append!(paths, documented_pages(value))
end
end
return paths
end

source_root = joinpath(@__DIR__, "src")
source_pages = sort!(String[
relpath(joinpath(root, file), source_root)
for (root, _, files) in walkdir(source_root)
for file in files if endswith(file, ".md")
])
navigation_pages = sort!(documented_pages(pages))
source_pages == navigation_pages || error(
"Documenter navigation must own every Markdown page; source=$(source_pages), " *
"navigation=$(navigation_pages)",
)

makedocs(
sitename = "LocalMath.jl",
authors = "Praneeth Merugu",
Expand All @@ -10,13 +45,5 @@ makedocs(
pagesonly = true,
checkdocs = :exports,
remotes = nothing,
pages = [
"Home" => "index.md",
"Quick start" => "learn/localmath-quickstart.md",
"Relations and storage" => "learn/localmath-relations.md",
"Scientific recipes" => "learn/localmath-recipes.md",
"Troubleshooting" => "learn/localmath-troubleshooting.md",
"Domain compilers" => "learn/localmath-domain-compiler.md",
"API" => "api/localmath.md",
],
pages = pages,
)
174 changes: 0 additions & 174 deletions docs/src/learn/localmath.md

This file was deleted.

45 changes: 0 additions & 45 deletions docs/src/localmath-0.2-release-candidate.md

This file was deleted.

Loading