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 <fabio.utzig@nordicsemi.no>
This commit is contained in:
Fabio Utzig 2020-10-07 10:26:06 -03:00 committed by Anas Nashif
parent 11966e599e
commit c261b784c8
1 changed files with 1 additions and 1 deletions

View File

@ -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)))