push!(LOAD_PATH,"../src/")

using Documenter, SpiDy

makedocs(;
    modules=[SpiDy],
    authors="Stefano Scali <scali.stefano@gmail.com>, Federico Cerisola <federico@cerisola.net>",
    repo="https://github.com/quantum-exeter/SpiDy.jl/blob/{commit}{path}#{line}",
    sitename="SpiDy.jl",
    format=Documenter.HTML(;
        prettyurls=get(ENV, "CI", "false") == "true",
        canonical="https://quantum-exeter.github.io/SpiDy.jl",
        edit_link="main",
        assets=String[],
    ),
    pages = ["Start with SpiDy.jl" => "index.md",
             "Units and parameter choice" => "units.md",
             "Noise" => "noise.md",
             "Spectral density" => "spectraldensity.md",
             "Stochastic field" => "stochasticfield.md",
             "Spin-environment coupling tensor" => "couplingtensor.md",
             "Spin-spin interactions" => "couplingfunctions.md",
             "Dynamics" => "dynamics.md"],
)

deploydocs(
    repo = "github.com/quantum-exeter/SpiDy.jl.git",
    devbranch="main",
)