converted all devlog pages to markdown
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
let idCounter: number = 0;
|
||||
|
||||
let root: HTMLElement;
|
||||
let container: HTMLElement;
|
||||
|
||||
onMount(() => {
|
||||
@@ -21,6 +22,11 @@
|
||||
element.innerHTML = `${(header as HTMLElement).innerHTML}`;
|
||||
container.appendChild(element);
|
||||
});
|
||||
|
||||
// Hide table of contents if no valid entries have been found
|
||||
if (headers.length == 0) {
|
||||
root.style.display = "none";
|
||||
}
|
||||
});
|
||||
|
||||
let getHeaders = function(): NodeList {
|
||||
@@ -54,11 +60,11 @@
|
||||
</script>
|
||||
|
||||
{#if disableStickyScrolling}
|
||||
<div class="toc-container notched">
|
||||
<div class="toc-container notched" bind:this={root}>
|
||||
{@render tocList()}
|
||||
</div>
|
||||
{:else}
|
||||
<div class="toc-container notched sticky-toc">
|
||||
<div class="toc-container notched sticky-toc" bind:this={root}>
|
||||
{@render tocList()}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user