Skip to content

Commit 9cc0180

Browse files
faxe1008kartben
authored andcommitted
doc: Fix anchor element for Kconfig symbol location
Fixes the element href assignment of the Kconfig symbol generation. Signed-off-by: Fabian Blatz <[email protected]>
1 parent b82c44c commit 9cc0180

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/_extensions/zephyr/kconfig/static/kconfig.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ function renderKconfigEntry(entry) {
316316

317317
let locationPermalink = getGithubLink(entry.filename, entry.linenr, "blob", zephyr_version);
318318
if (locationPermalink) {
319-
const locationPermalink = document.createElement('a');
320-
locationPermalink.href = locationPermalink;
321-
locationPermalink.appendChild(locationElement);
322-
renderKconfigPropLiteralElement(props, 'Location', locationPermalink);
319+
const locationPermalinkElement = document.createElement('a');
320+
locationPermalinkElement.href = locationPermalink;
321+
locationPermalinkElement.appendChild(locationElement);
322+
renderKconfigPropLiteralElement(props, 'Location', locationPermalinkElement);
323323
} else {
324324
renderKconfigPropLiteralElement(props, 'Location', locationElement);
325325
}

0 commit comments

Comments
 (0)