doc: link-roles: fix :zephyr_file: default revision

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 <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-05-21 13:23:57 -07:00 committed by Anas Nashif
commit 095c9a3e92

View file

@ -24,7 +24,7 @@ def get_github_rev():
if tag:
return tag.decode("utf-8")
else:
return 'master'
return 'main'
def setup(app):