|
| 1 | +using Documenter, FrameTransformations |
| 2 | +using Pkg |
| 3 | + |
| 4 | +const CI = get(ENV, "CI", "false") == "true" |
| 5 | + |
| 6 | +if CI |
| 7 | + Pkg.add("Ephemerides") |
| 8 | + Pkg.add("ReferenceFrameRotations") |
| 9 | + Pkg.add("JSMDUtils") |
| 10 | + Pkg.add("JSMDInterfaces") |
| 11 | + Pkg.add("Literate") |
| 12 | + Pkg.add("Dates") |
| 13 | + Pkg.add("Tempo") |
| 14 | +end |
| 15 | + |
| 16 | +# include("generate.jl") |
| 17 | + |
| 18 | +makedocs(; |
| 19 | + authors="JSMD Development Team", |
| 20 | + sitename="FrameTransformations.jl", |
| 21 | + modules=[FrameTransformations], |
| 22 | + format=Documenter.HTML(; prettyurls=CI, highlights=["yaml"], ansicolor=true), |
| 23 | + pages=[ |
| 24 | + "Home" => "index.md", |
| 25 | + "Tutorials" => [ |
| 26 | + # "01 - Frame System" => "Tutorials/gen/t00_frames.md", |
| 27 | + # "02 - Rotation" => "Tutorials/gen/t01_rotation.md", |
| 28 | + # "03 - Axes" => "Tutorials/gen/t02_axes.md", |
| 29 | + # "04 - Points" => "Tutorials/gen/t03_points.md", |
| 30 | + # "05 - Light Time Corrections" => "Tutorials/gen/t04_lighttime.md", |
| 31 | + # "06 - Multi-threading" => "Tutorials/gen/t05_multithread.md" |
| 32 | + ], |
| 33 | + # "Use Cases" => [ |
| 34 | + # "CR3BP" => "Examples/gen/e01_cr3bp.md", |
| 35 | + # "High Fidelity" => "Examples/gen/e02_hifi.md", |
| 36 | + # "Custom Orbit" => "Examples/gen/e03_customorb.md" |
| 37 | + # ], |
| 38 | + # "Benchmarks" => "benchmarks.md", |
| 39 | + "API" => [ |
| 40 | + "Public API" => [ |
| 41 | + "Axes" => "API/axes_api.md", |
| 42 | + "Points" => "API/point_api.md", |
| 43 | + "Directions" => "API/dir_api.md", |
| 44 | + "Frames" => "API/frames_api.md" |
| 45 | + ], |
| 46 | + ], |
| 47 | + ], |
| 48 | + clean=true, |
| 49 | + checkdocs=:none |
| 50 | +) |
| 51 | + |
| 52 | +if CI |
| 53 | + deploydocs(; |
| 54 | + repo="github.com/JuliaSpaceMissionDesign/FrameTransformations.jl", branch="gh-pages" |
| 55 | + ) |
| 56 | +end |
0 commit comments