Skip to content

Commit

Permalink
update version index output
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Nov 8, 2023
1 parent 865cee9 commit 3889989
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/html/templates/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 62,7 @@ a {
}
#sidepanel a {
display: block;
padding: 8px 16px 8px 8px;
padding: 4px 8px 4px 4px;
border-radius: var(--general-border-radius) 0 0 var(--general-border-radius);
position: relative;
}
Expand Down
29 changes: 28 additions & 1 deletion src/html/templates/version_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 11,37 @@ <h2>Index</h2>
{#- TODO(bartlomieju): call into template here #}

<section>
<h2>Module<pre>{ module_doc.url }</pre></h2>
<h2><pre>{ module_doc.url }</pre></h2>
{ module_doc.docs }
</section>

<section>
<h3>Modules</h3>
<ul>
{{ for file in sidepanel_ctx.files }}
<li>
<a href="">{ file }</a>
</li>
{{ endfor }}
</ul>
</section>

<section>
<h3>APIs</h3>
<ul>
{{ for kind in sidepanel_ctx.kind_partitions }}
<li>
<h3><pre>{ kind.name }</pre></h3>

{{ for symbol in kind.symbols }}
<li>
<a href="">{ symbol.name } </a>
</li>
{{ endfor }}
</li>
{{ endfor }}
</ul>
</section>
</main>

{{ call search_results.html with search_ctx }}
Expand Down
18 changes: 9 additions & 9 deletions src/html/templates/version_sidepanel.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 3,15 @@ <h2><a href="{base_url}">{package_name}</a></h2>

<a href="">All symbols</a>

<h3>Modules</h3>
<ul>
{{ for file in files }}
<li>
<a href="{base_url}">{file}</a>
</li>
{{ endfor }}
</ul>

<h3>APIs</h3>
<ul>
{{ for kind in kind_partitions }}
Expand All @@ -18,13 27,4 @@ <h4>{ kind.name }</h4>
</li>
{{ endfor }}
</ul>

<h3>Modules</h3>
<ul>
{{ for file in files }}
<li>
<a href="{base_url}">{file}</a>
</li>
{{ endfor }}
</ul>
</div>

0 comments on commit 3889989

Please sign in to comment.