Remove inline scripts from the rustdoc output #81133
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Rustdoc currently emits two inline
<script>
tags into each HTML page it generates, making it hard to enforce content security policies on websites hosting documentation. The two tags in question are:Both of the tags just define variables used by the JavaScript code, and it should be possible to replace them with
data-
attributes loaded bymain.js
without other changes to the codebase:The text was updated successfully, but these errors were encountered: