diff --git a/site/src/jsMain/resources/index.html b/site/src/jsMain/resources/index.html index f4e065e..30fdc61 100644 --- a/site/src/jsMain/resources/index.html +++ b/site/src/jsMain/resources/index.html @@ -17,323 +17,504 @@ - - - + + + Lyng language - + - - - -
+ + + + + + + + + + +
v1.0.6-SNAPSHOT -
- - Skip to content -
+ - -
+ +
- - + + - - - + - - + } + + + + )(); + + // Set up mutation observer for Kotlin code blocks + const observer = new MutationObserver((mutations) => { + mutations.forEach((mutation) => { + mutation.addedNodes.forEach((node) => { + if (node.nodeType === Node.ELEMENT_NODE) { + const kotlinBlocks = node.querySelectorAll('code.language-kotlin'); + kotlinBlocks.forEach((block) => { + console.log('Found Kotlin code block:', block.textContent); + hljs.highlightElement(block); + }); + } + }); + }); + }); + + // Start observing document body for changes + observer.observe(document.body, { + childList: true, + subtree: true + }); + + +