Skip to content

Syntax highlighting not working on doc.rust-lang.org, but working locally #1938

Closed
@Christoph-Harms

Description

@Christoph-Harms

Tested with Chromium, Firefox.

When I visit doc.rust-lang.org, I don't get syntax highlighting:

Image

However, if I build locally, I do get syntax highlighting:

Image

Update
Browser console gives some insight (sorry, should have checked first):

Image

Comparing this with my locally running version confirms that this file controls the syntax highlighting for Rust. The only difference is that in my local version, the file is requested with a cache suffix:

Image

While on the official website, that suffix is missing:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions