Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: reduce per-page HTML overhead #123706

Merged
merged 5 commits into from
Apr 10, 2024

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    5f84f4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dac788f View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. rustdoc: load icons from css instead of inline

    This cuts the HTML overhead for a page by about 1KiB,
    significantly reducing the overall size of the docs bundle.
    notriddle committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    13235dc View commit details
    Browse the repository at this point in the history
  2. rustdoc: remove unused 16x16 favicon

    According to <https://caniuse.com/?search=svg%20favicon>,
    SVG favicons are supported in everything but Safari.
    
    When I actually try it in Safari, it's downloading all
    three favicons, and nothing looks different when I disable
    the 16x16 one.
    
    <https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7>,
    which is linked from caniuse above, recommends an ico.
    However, the reason they recommend it is the apps that
    only support /favicon.ico exactly, and rustdoc can't assume
    it will be installed to the site root, so it's unfortunately
    up to the webmaster to make sure it's set up.
    notriddle committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    87faa21 View commit details
    Browse the repository at this point in the history
  3. rustdoc: update test cases

    notriddle committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    3a007db View commit details
    Browse the repository at this point in the history