# Netlify build
[build]
    publish = "site"
    command = """
        pip install mkdocs && pip install mkdocs-material
        mkdocs build -d site
    """

[build.environment]
    PYTHON_VERSION = "3.7"

# Netlify redirects
[[redirects]]
    from = "https://kubernetes-sigs-cloud-provider-aws.netlify.com/*"
    to = "https://cloud-provider-aws.sigs.k8s.io/:splat"
    status = 301
    force = true

# HTTP -> HTTPS
[[redirects]]
    from = "http://cloud-provider-aws.sigs.k8s.io/*"
    to = "https://cloud-provider-aws.sigs.k8s.io/:splat"
    status = 301
    force = true

[[redirects]]
    from = "http://kubernetes-sigs-cloud-provider-aws.netlify.com/*"
    to = "http://cloud-provider-aws.sigs.k8s.io/:splat"
    status = 301
    force = true
