Skip to content

Rustdoc: consistentize sidebar HTML generation #92986

Closed
@jsha

Description

@jsha

In the Rustdoc sidebar (e.g.), some sections (like Methods) are organized like:

<div class="block items">
  <h3>Some Title</h3>
  <div class="sidebar-links">
    <a>foo</a>
    <a>bar</a>
  </div>
</div>

Others, under "In <module>", like Structs or Functions, are organized like:

<div class="block fn">
  <h3>Some Title</h3>
  <ul>
    <li><a>foo</a></li>
    <li><a>bar</a></li>
  </ul>
</div>

The latter is semantically preferable. We should consolidate on using <ul> / <li> in both types of sidebar sections, to make maintaining our CSS easier and more consistent.

Metadata

Metadata

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions