diff --git a/site/content/docs/05-misc/04-migrating-v3-to-v4.md b/site/content/docs/05-misc/03-migrating-v3-to-v4.md similarity index 100% rename from site/content/docs/05-misc/04-migrating-v3-to-v4.md rename to site/content/docs/05-misc/03-migrating-v3-to-v4.md diff --git a/site/content/docs/05-misc/03-svelte-internal.md b/site/content/docs/05-misc/03-svelte-internal.md deleted file mode 100644 index c7d51aac05..0000000000 --- a/site/content/docs/05-misc/03-svelte-internal.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: svelte/internal ---- - -`svelte/internal` module gives you all the mthods and types internally used. - -> WARNING: This API may change without warning. Use exports from this module with caution. - -## Exports - -> EXPORTS: svelte/internal - -## Types - -> TYPES: svelte/internal diff --git a/sites/svelte.dev/src/routes/docs/[slug]/OnThisPage.svelte b/sites/svelte.dev/src/routes/docs/[slug]/OnThisPage.svelte index 69afb1cc78..09422dc344 100644 --- a/sites/svelte.dev/src/routes/docs/[slug]/OnThisPage.svelte +++ b/sites/svelte.dev/src/routes/docs/[slug]/OnThisPage.svelte @@ -41,7 +41,7 @@ function update() { content = document.querySelector('.content'); const { top } = content.getBoundingClientRect(); - headings = content.querySelectorAll('h2[id]'); + headings = content.querySelectorAll('h2[id], h3[id]'); positions = Array.from(headings).map((heading) => { const style = getComputedStyle(heading); return heading.getBoundingClientRect().top - parseFloat(style.scrollMarginTop) - top; @@ -92,13 +92,13 @@ containerEl.scrollBy({ top: top - max, left: 0, - behavior: 'smooth', + behavior: 'smooth' }); } else if (bottom < min) { containerEl.scrollBy({ top: bottom - min, left: 0, - behavior: 'smooth', + behavior: 'smooth' }); } }