using Documenter, Mera

makedocs(modules = [Mera],
         sitename = "Mera.jl",
         doctest = false,
         clean = true,
         checkdocs = :all,
         format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true", sidebar_sitename = false),
         authors = "Manuel Behrendt",
		 pages = Any[ "Home"                  => "index.md",
		              "First Steps"           => "00_multi_FirstSteps.md",
                      "1-Data Inspection"     => Any[ "Hydro"      =>  "01_hydro_First_Inspection.md",
                                                      "Particles"  =>  "01_particles_First_Inspection.md",
                                                      "Clumps"     =>  "01_clumps_First_Inspection.md"],

                      "2-Load by Selection"   => Any[ "Hydro"      =>  "02_hydro_Load_Selections.md",
                                                      "Particles"  =>  "02_particles_Load_Selections.md",
                                                      "Clumps"     =>  "02_clumps_Load_Selections.md"],

                       "3-Get Subregions"     => Any[ "Hydro"      => "03_hydro_Get_Subregions.md",
                                                      "Particles"  => "03_particles_Get_Subregions.md",
                                                      "Clumps"     => "03_clumps_Get_Subregions.md"],

                      "4-Basic Calculations"  => "04_multi_Basic_Calculations.md",

                      "5-Mask/Filter/Meta"    => "05_multi_Masking_Filtering.md",

                      "6-Projection"          => Any[ "Hydro"      =>  "06_hydro_Projection.md",
                                                      "Particles"  =>  "06_particles_Projection.md"],

                      "Examples"              => "examples.md",
                      
                      "API Documentation"     => "api.md"
                      ]
		 )


deploydocs(repo = "github.com/ManuelBehrendt/Mera.jl.git")
