Fix driver links rendering in the summary table
This patch fixes driver links to render properly in the summary table. Previously, when a "link" was defined for a driver, the driver titles were not clickable and the driver link was not used. Change-Id: I08c45e4f1bd7b206cdc3896ee4dc049bbc4347a2
This commit is contained in:
parent
2dacdfb5bf
commit
e8ebf0ee0d
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixed driver links to render in the summary table.
|
|
@ -284,6 +284,14 @@ class Directive(rst.Directive):
|
|||
driver = matrix.drivers[key]
|
||||
implcol = nodes.entry()
|
||||
header.append(implcol)
|
||||
if driver.link:
|
||||
uri = driver.link
|
||||
target_ref = nodes.reference("", refuri=uri)
|
||||
target_txt = nodes.inline()
|
||||
implcol.append(target_txt)
|
||||
target_txt.append(target_ref)
|
||||
target_ref.append(nodes.strong(text=driver.title))
|
||||
else:
|
||||
implcol.append(nodes.strong(text=driver.title))
|
||||
|
||||
# We now produce the body of the table, one row for
|
||||
|
|
Loading…
Reference in New Issue