Pkg.activate("./docs")

using Documenter, EndowmentsLH, FilesLH

makedocs(
    modules = [EndowmentsLH],
    format = Documenter.HTML(; prettyurls = get(ENV, "CI", nothing) == "true"),
    authors = "hendri54",
    sitename = "EndowmentsLH.jl",
    pages = Any["index.md"]
    # strict = true,
    # clean = true,
    # checkdocs = :exports,
)

pkgDir = rstrip(normpath(@__DIR__, ".."), '/');
@assert endswith(pkgDir, "EndowmentsLH")
deploy_docs(pkgDir; trialRun = false);

Pkg.activate(".")

# deploydocs(
#     repo = "github.com/hendri54/EndowmentsLH.jl.git",
#     push_preview = true
# )
