def get_release_notes_urls()

in bedrock/sitemaps/utils.py [0:0]


def get_release_notes_urls():
    urls = {}
    for release in ProductRelease.objects.exclude(product="Thunderbird"):
        # we redirect all release notes for versions 28.x and below to an archive
        # and Firefox for iOS uses a different version numbering scheme
        if release.product != "Firefox for iOS" and release.major_version_int < 29:
            continue

        try:
            rel_path = release.get_absolute_url()
            req_path = release.get_sysreq_url()
        except resolvers.NoReverseMatch:
            continue

        # strip "/en-US" off the front
        if rel_path.startswith("/en-US"):
            rel_path = rel_path[6:]
        if req_path.startswith("/en-US"):
            req_path = req_path[6:]

        urls[rel_path] = ["en-US"]
        urls[req_path] = ["en-US"]

    return urls