The slint code snippets have custom syntax highlight (I doubt rustdoc recognize this language by default), an edit link, and a preview image (which does not seem to work).
I also checked langref.md on their GitHub repo but saw nothing special.
As far as I know, docs.rs automatically generates documentation when a new crate is published to crates.io. How did slint devs pass --html-in-header to the command line if they don't control the command line?