using GenieWebApp
using Documenter

DocMeta.setdocmeta!(GenieWebApp, :DocTestSetup, :(using GenieWebApp); recursive=true)

makedocs(;
    modules=[GenieWebApp],
    authors="Jaan Tollander de Balsch",
    repo="https://github.com/csc-training/GenieWebApp.jl/blob/{commit}{path}#{line}",
    sitename="GenieWebApp.jl",
    format=Documenter.HTML(;
        prettyurls = true,
        canonical="https://csc-training.github.io/GenieWebApp.jl",
        assets=String[],
        highlights=String["dockerfile", "nginx"],
    ),
    pages=[
        "About Web Technologies and Cloud Computing" => "index.md",
        "Developing a Genie Application (v3.0)" => [
            joinpath("genie", "development.md"),
            joinpath("genie", "testing.md"),
        ],
        "Deploying to Virtual Machine using OpenStack (v5.5)" => [
            joinpath("openstack", "web-user-interface.md"),
            joinpath("openstack", "command-line-interface.md"),
            joinpath("openstack", "deployment.md"),
            joinpath("openstack", "deletion.md"),
        ],
        "Deploying to OpenShift Container Platform (v3.11)" => [
            joinpath("openshift", "container.md"),
            joinpath("openshift", "web-user-interface.md"),
            joinpath("openshift", "command-line-interface.md"),
            joinpath("openshift", "deletion.md"),
        ],
    ],
)

deploydocs(;
    repo="github.com/csc-training/GenieWebApp.jl",
)
