add show docs link to config

This commit is contained in:
2026-01-02 23:53:44 +11:00
parent d9a6943570
commit 407ee6c0d3
3 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
/**
* Shows or hides the Docs link in the sidebar based on config.
* @param {boolean} show - Whether to show the Docs link.
*/
setShowDocsLink(show) {
const docsLink = document.querySelector('.github-link');
if (docsLink) {
docsLink.style.display = show ? '' : 'none';
}
}
/**
* Service responsible for DOM manipulation and UI rendering.
* @class DOMService