From c261b784c87ac40217a718c891c494f79b590135 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Wed, 7 Oct 2020 10:26:06 -0300 Subject: [PATCH] doc: fix broken link-roles on west>=0.8 Fix broken links generated by link-roles after west was upgrade to 0.8.0. `url` was previously `None` and now returns an empty str. Signed-off-by: Fabio Utzig --- 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 30eefc73eda..b81481b8583 100644 --- a/doc/extensions/zephyr/link-roles.py +++ b/doc/extensions/zephyr/link-roles.py @@ -34,7 +34,7 @@ def setup(app): baseurl = None # or fallback to default - if baseurl is None: + if baseurl is None or baseurl == '': baseurl = 'https://github.com/zephyrproject-rtos/zephyr' app.add_role('zephyr_file', autolink('{}/blob/{}/%s'.format(baseurl, rev)))