Skip to content

Commit

Permalink
Removing broken deps; adding formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cadojo committed Mar 24, 2024
1 parent d79621b commit 88cc121
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
1 change: 1 addition & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style = "sciml"
69 changes: 33 additions & 36 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -36,36 +34,35 @@ 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")

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#.#.#"]
)

0 comments on commit 88cc121

Please sign in to comment.