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

using NeuroFormats
using Documenter

makedocs(;
    modules=[NeuroFormats, NeuroFormats.FreeSurfer, NeuroFormats.DTI],
    authors="Tim Sch√§fer <ts+code@rcmd.org> and contributors",
    repo="https://github.com/dfsp_spirit/NeuroFormats.jl/blob/{commit}{path}#L{line}",
    sitename="NeuroFormats.jl",
    format=Documenter.HTML(;
        prettyurls=get(ENV, "CI", "false") == "true",
        canonical="https://dfsp_spirit.github.io/NeuroFormats.jl",
        assets=String[],
    ),
    pages=[
        "Introduction" => "introduction.md",
        "API docs" => "index.md",
    ],
)

deploydocs(;
    repo="github.com/dfsp_spirit/NeuroFormats.jl",
)
