Skip to content

Rustdoc render inconsistency #13804

@lifthrasiir

Description

@lifthrasiir

There are a number of inconsistencies in the current rustdoc renders, including:

  • The method listing for structs/enums has a different look from that for traits. For example, the method heading for structs/enums is bolder than that for traits (font-weight: 600 vs. font-weight: 400).
  • Several non-generated headings (e.g. "Required Methods" in the trait) don't have a link to self.
  • Why is the stability index rendered as <a> instead of <span>?
  • Item listings in the module should have one-line descriptions, but sometimes descriptions span more than one line (e.g. std::kinds::marker). I suspect that's because code has white-space: pre-wrap attribute everywhere; .docblock.short code { white-space: nowrap; } seems to solve that (not sure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions