diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml new file mode 100644 index 00000000..580b7511 --- /dev/null +++ b/.JuliaFormatter.toml @@ -0,0 +1 @@ +style = "sciml" diff --git a/docs/make.jl b/docs/make.jl index a077ff72..894f7018 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,32 +1,30 @@ -using Latexify using Documenter -using ModelingToolkit -using AstrodynamicalModels makedocs( - sitename="`ephemeris.loopy.codes`", - format=Documenter.HTML(), - modules=[], - pages=[ + sitename = "`ephemeris.loopy.codes`", + format = Documenter.HTML(), + modules = [], + pages = [ "Home" => "index.md", "Overview" => [ "Getting Started" => "getting-started/index.md", - "Examples" => "examples/index.md", - ], + "Examples" => "examples/index.md" + ] ] ) - using MultiDocumenter clonedir = mktempdir() -ref(name) = MultiDocumenter.MultiDocRef( - upstream=joinpath(clonedir, name), - path=name, - name=name, - giturl="https://github.com/cadojo/$name.jl.git", -) +function ref(name) + MultiDocumenter.MultiDocRef( + upstream = joinpath(clonedir, name), + path = name, + name = name, + giturl = "https://github.com/cadojo/$name.jl.git" + ) +end horizons = [ ref("HorizonsAPI") @@ -36,18 +34,18 @@ spice = [ ] docs = [ - # MultiDocRef( - # upstream=joinpath(clonedir, "Home"), - # path="Overview", - # name="Home", - # giturl="https://github.com/cadojo/ephemeris.loopy.codes.git" - # ), +# MultiDocRef( +# upstream=joinpath(clonedir, "Home"), +# path="Overview", +# name="Home", +# giturl="https://github.com/cadojo/ephemeris.loopy.codes.git" +# ), MultiDocumenter.MegaDropdownNav( - "Ephemeris Sources", [ - MultiDocumenter.Column("JPL HORIZONS", horizons), - MultiDocumenter.Column("JPL SPICE Kernels", spice), - ] - ) + "Ephemeris Sources", [ + MultiDocumenter.Column("JPL HORIZONS", horizons), + MultiDocumenter.Column("JPL SPICE Kernels", spice) + ] +) ] outpath = joinpath(@__DIR__, "build") @@ -55,17 +53,16 @@ outpath = joinpath(@__DIR__, "build") MultiDocumenter.make( outpath, docs; - search_engine=MultiDocumenter.SearchConfig( - index_versions=["stable", "dev"], - engine=MultiDocumenter.FlexSearch + search_engine = MultiDocumenter.SearchConfig( + index_versions = ["stable", "dev"], + engine = MultiDocumenter.FlexSearch ) ) Documenter.deploydocs( - target=outpath, - repo="github.com/cadojo/ephemeris.loopy.codes.git", - branch="gh-pages", - devbranch="main", - versions=["stable" => "v^", "manual", "v#.#", "v#.#.#"], + target = outpath, + repo = "github.com/cadojo/ephemeris.loopy.codes.git", + branch = "gh-pages", + devbranch = "main", + versions = ["stable" => "v^", "manual", "v#.#", "v#.#.#"] ) -