Skip to content

Commit c261b78

Browse files
utzignashif
authored andcommitted
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>
1 parent 11966e5 commit c261b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/extensions/zephyr/link-roles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def setup(app):
3434
baseurl = None
3535

3636
# or fallback to default
37-
if baseurl is None:
37+
if baseurl is None or baseurl == '':
3838
baseurl = 'https://github.com/zephyrproject-rtos/zephyr'
3939

4040
app.add_role('zephyr_file', autolink('{}/blob/{}/%s'.format(baseurl, rev)))

0 commit comments

Comments
 (0)