doc,rustdoc: improvements

This is #9868 but doesn't move css files to a separate subfolder, which was causing errors on the Rust buildbot.