diff --git a/docs-rs/trait-tags.html b/docs-rs/trait-tags.html
index c52a6bb068..02f3c21a00 100644
--- a/docs-rs/trait-tags.html
+++ b/docs-rs/trait-tags.html
@@ -73,12 +73,10 @@
let code;
if (el.nodeName === `A`) {
code = el.children[0];
+ requiredComponents.push([code.innerText, el.getAttribute('href')]);
} else if (el.nodeName === `CODE`) {
- code = el;
- } else {
- continue;
+ requiredComponents.push([el.innerText]);
}
- requiredComponents.push(code.innerText);
}
}
}
@@ -132,9 +130,14 @@
tooltip.className = `bevy-tooltip`;
const ul = document.createElement('ul');
- for (const component of requiredComponents) {
+ for (const [component, componentHref] of requiredComponents) {
const li = document.createElement('li');
- li.innerText = component;
+ const a = document.createElement('a');
+ if (componentHref) {
+ a.setAttribute('href', componentHref);
+ }
+ a.innerText = component;
+ li.appendChild(a);
ul.appendChild(li);
}