Move the jump index to the top of the page for faster access.

main
Zed A. Shaw 2 years ago
parent 917945e82c
commit 253d5b5b9f
  1. 20
      admin/pages/DocsBrowser.svelte

@ -54,8 +54,6 @@
await load_index();
});
$: console.log("params", params);
$: if(params.wild && params.wild !== url) {
load_docs(params.wild);
}
@ -159,13 +157,14 @@
toc {
display: grid;
grid-template-columns: repeat(5, 1fr);
background-color: var(--value3);
color: var(--value9);
}
toc span {
border: 1px solid black;
padding: 0.5rem;
text-align: center;
background-color: var(--value3);
}
.no-doc {
@ -185,15 +184,8 @@
</sidebar>
<right>
<scroll-sucks id="top-scroll"></scroll-sucks>
{#if docs_data}
<module-header>
<h1>{ url }</h1>
{#if docs_data.comment}
{@html docs_data.comment}
{/if}
<toc>
<toc id="top-scroll">
{#each docs_data.exports as exp}
<span class:no-doc={ !exp.comment } on:click={ () => jump(exp.slug) }>{ exp.name }
{#each exp.caps as cap_word}<Icon name={ caps_to_icon[cap_word] } size="24" light={ true }/>{/each}
@ -209,6 +201,12 @@
{/each}
</toc>
<module-header>
<h1>{ url }</h1>
{#if docs_data.comment}
{@html docs_data.comment}
{/if}
</module-header>
{#each docs_data.exports as exp}

Loading…
Cancel
Save