|
1 | 1 | using Documenter
|
2 | 2 | using LearnAPI
|
3 | 3 | using ScientificTypesBase
|
| 4 | +using DocumenterInterLinks |
4 | 5 |
|
5 |
| -const REPO="github.com/JuliaAI/LearnAPI.jl" |
| 6 | +const REPO = Remotes.GitHub("JuliaAI", "LearnAPI.jl") |
6 | 7 |
|
7 |
| -makedocs(; |
| 8 | +makedocs( |
8 | 9 | modules=[LearnAPI,],
|
9 |
| - format=Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"), |
| 10 | + format=Documenter.HTML( |
| 11 | + prettyurls = true,#get(ENV, "CI", nothing) == "true", |
| 12 | + collapselevel = 1, |
| 13 | + ), |
10 | 14 | pages=[
|
11 |
| - "Overview" => "index.md", |
12 |
| - "Goals and Approach" => "goals_and_approach.md", |
| 15 | + "Home" => "index.md", |
13 | 16 | "Anatomy of an Implementation" => "anatomy_of_an_implementation.md",
|
14 |
| - "Reference" => "reference.md", |
15 |
| - "Fit, update and ingest" => "fit_update_and_ingest.md", |
16 |
| - "Predict and other operations" => "operations.md", |
17 |
| - "Accessor Functions" => "accessor_functions.md", |
18 |
| - "Optional Data Interface" => "optional_data_interface.md", |
19 |
| - "Algorithm Traits" => "algorithm_traits.md", |
| 17 | + "Reference" => [ |
| 18 | + "Overview" => "reference.md", |
| 19 | + "fit/update" => "fit_update.md", |
| 20 | + "predict/transform" => "predict_transform.md", |
| 21 | + "Kinds of Target Proxy" => "kinds_of_target_proxy.md", |
| 22 | + "obs and Data Interfaces" => "obs.md", |
| 23 | + "target/weights/features" => "target_weights_features.md", |
| 24 | + "Accessor Functions" => "accessor_functions.md", |
| 25 | + "Learner Traits" => "traits.md", |
| 26 | + ], |
20 | 27 | "Common Implementation Patterns" => "common_implementation_patterns.md",
|
21 | 28 | "Testing an Implementation" => "testing_an_implementation.md",
|
22 | 29 | ],
|
23 |
| - repo="https://$REPO/blob/{commit}{path}#L{line}", |
24 |
| - sitename="LearnAPI.jl" |
| 30 | + sitename="LearnAPI.jl", |
| 31 | + warnonly = [:cross_references, :missing_docs], |
| 32 | + repo = Remotes.GitHub("JuliaAI", "LearnAPI.jl"), |
25 | 33 | )
|
26 | 34 |
|
27 | 35 | deploydocs(
|
28 |
| - ; repo=REPO, |
29 | 36 | devbranch="dev",
|
30 | 37 | push_preview=false,
|
| 38 | + repo="github.com/JuliaAI/LearnAPI.jl.git", |
31 | 39 | )
|
0 commit comments