using Documenter, ModelingToolkitStandardLibrary
using ModelingToolkitStandardLibrary.Blocks
using ModelingToolkitStandardLibrary.Mechanical
using ModelingToolkitStandardLibrary.Mechanical.Rotational
using ModelingToolkitStandardLibrary.Magnetic
using ModelingToolkitStandardLibrary.Magnetic.FluxTubes
using ModelingToolkitStandardLibrary.Electrical
using ModelingToolkitStandardLibrary.Thermal

include("pages.jl")

makedocs(
    sitename="ModelingToolkitStandardLibrary.jl",
    authors="Julia Computing",
    clean=true,
    doctest=false,
    modules=[ModelingToolkitStandardLibrary,
             ModelingToolkitStandardLibrary.Blocks,
             ModelingToolkitStandardLibrary.Mechanical,
             ModelingToolkitStandardLibrary.Mechanical.Rotational,
             ModelingToolkitStandardLibrary.Magnetic,
             ModelingToolkitStandardLibrary.Magnetic.FluxTubes,
             ModelingToolkitStandardLibrary.Electrical,
             ModelingToolkitStandardLibrary.Thermal],

    format=Documenter.HTML(assets=["assets/favicon.ico"],
                           canonical="https://mtkstdlib.sciml.ai/stable/"),

    pages=pages
)

deploydocs(
    repo="github.com/SciML/ModelingToolkitStandardLibrary.jl";
    push_preview=true
)
