-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.jl
More file actions
49 lines (42 loc) · 1.45 KB
/
make.jl
File metadata and controls
49 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using Documenter
using DecisionFocusedLearningBenchmarks
using Literate
md_dir = joinpath(@__DIR__, "src")
tutorial_dir = joinpath(@__DIR__, "src", "tutorials")
benchmarks_dir = joinpath(@__DIR__, "src", "benchmarks")
api_dir = joinpath(@__DIR__, "src", "api")
tutorial_files = readdir(tutorial_dir)
md_tutorial_files = [split(file, ".")[1] * ".md" for file in tutorial_files]
benchmark_files = [joinpath("benchmarks", e) for e in readdir(benchmarks_dir)]
include_tutorial = true
if include_tutorial
for file in tutorial_files
filepath = joinpath(tutorial_dir, file)
Literate.markdown(filepath, md_dir; documenter=true, execute=false)
end
end
makedocs(;
modules=[DecisionFocusedLearningBenchmarks],
authors="Members of JuliaDecisionFocusedLearning",
sitename="DecisionFocusedLearningBenchmarks.jl",
format=Documenter.HTML(; size_threshold=typemax(Int)),
pages=[
"Home" => [
"Getting started" => "index.md",
"Understanding Benchmark Interfaces" => "benchmark_interfaces.md",
],
"Tutorials" => include_tutorial ? md_tutorial_files : [],
"Benchmark problems list" => benchmark_files,
"API reference" => "api.md",
],
)
if include_tutorial
for file in md_tutorial_files
filepath = joinpath(md_dir, file)
rm(filepath)
end
end
deploydocs(;
repo="github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl",
devbranch="main",
)