From 095c9a3e92f076dd8e3699768efd6aedae9c048c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Fri, 21 May 2021 13:23:57 -0700 Subject: [PATCH] doc: link-roles: fix :zephyr_file: default revision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This needs to use 'main' for its default now. Without this patch, GitHub redirects to main, but displays a banner that says 'Branch not found, redirected to default branch' at the top. Signed-off-by: Martí Bolívar --- doc/_extensions/zephyr/link-roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_extensions/zephyr/link-roles.py b/doc/_extensions/zephyr/link-roles.py index e72796e05b7..58d204d77f3 100644 --- a/doc/_extensions/zephyr/link-roles.py +++ b/doc/_extensions/zephyr/link-roles.py @@ -24,7 +24,7 @@ def get_github_rev(): if tag: return tag.decode("utf-8") else: - return 'master' + return 'main' def setup(app):