1+ # to run the documentation generation:
2+ # julia --project=. docs/make.jl
3+ pushfirst! (LOAD_PATH , joinpath (@__DIR__ , " .." ))
4+ pushfirst! (LOAD_PATH , @__DIR__ )
5+
16using Documenter
27using DocumenterInterLinks
38using OptimalControl
@@ -16,7 +21,9 @@ links = InterLinks(
1621 ),
1722)
1823
19- # For reproducibility
24+ # ═══════════════════════════════════════════════════════════════════════════════
25+ # Assets for reproducibility
26+ # ═══════════════════════════════════════════════════════════════════════════════
2027mkpath (joinpath (@__DIR__ , " src" , " assets" ))
2128cp (
2229 joinpath (@__DIR__ , " Manifest.toml" ),
3138
3239repo_url = " github.com/control-toolbox/Tutorials.jl"
3340
34- # if draft is true, then the julia code from .md is not executed # debug
41+ # ═══════════════════════════════════════════════════════════════════════════════
42+ # Configuration
43+ # ═══════════════════════════════════════════════════════════════════════════════
44+ # if draft is true, then the julia code from .md is not executed
3545# to disable the draft mode in a specific markdown file, use the following:
3646#=
3747```@meta
3848Draft = false
3949```
4050=#
51+ draft = false # Draft mode: if true, @example blocks in markdown are not executed
52+
53+ # ═══════════════════════════════════════════════════════════════════════════════
54+ # Build documentation
55+ # ═══════════════════════════════════════════════════════════════════════════════
4156makedocs (;
42- draft= false ,
43- warnonly= [:cross_references , :autodocs_block ],
57+ draft= draft ,
58+ warnonly= [:cross_references , :autodocs_block , :external_cross_references ],
4459 sitename= " Tutorials" ,
4560 format= Documenter. HTML (;
4661 repolink= " https://" * repo_url,
4762 prettyurls= false ,
48- size_threshold_ignore= [" " ],
63+ size_threshold_ignore= [
64+ " tutorial-discretisation.md" ,
65+ " tutorial-nlp.md" ,
66+ ],
4967 assets= [
5068 asset (" https://control-toolbox.org/assets/css/documentation.css" ),
5169 asset (" https://control-toolbox.org/assets/js/documentation.js" ),
0 commit comments