You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I instead tried option 3, which is to have the .toc function target an ad-hoc toc-context class instead of the incidental inner-box. Divs that contain information you want to show in the TOC would now have toc-context added to their class list. If the content you want on the TOC has sibling content that you don't want on the TOC, move the TOC-targeted content into a nested div with class="toc-context". e.g.
<divclass="inner-box"><divclass="toc-context">
{{content}}
</div>
{% include contributors-list.html %}
</div>
Just noticed something weird about how the table of contents is structured.
The generated "Contributors to this Page" section at the bottom of each page gets shown as a sub-heading in the ToC when it logically isn't:
(Contributors is not a sub-section of Structural Types)
Two quick ways of fixing it:
.content-contributors
in theexclude
list when calling the toc plugin, so it doesn't show up in the ToC, see here:docs.scala-lang/resources/js/functions.js
Lines 298 to 309 in 5ac9c20
h2
so it's on the same level as the previous heading and won't get nested under it:docs.scala-lang/_includes/contributors-list.html
Lines 1 to 4 in 5ac9c20
We can decide the preferred approach and I'll open a PR with the fix.
The text was updated successfully, but these errors were encountered: