Docs: fix the no-preview tag

That tag is added in a bunch of places, but was not working (the preview
was still shown)
This commit is contained in:
Olivier Goffart 2022-11-28 10:11:34 +01:00 committed by Olivier Goffart
parent 6a879669d7
commit fea2f8df37

View file

@ -34,7 +34,7 @@
async function run() {
await slint.default();
let selector = ["code.language-slint", ".rustdoc pre.language-slint", "div.highlight-slint"]
.map((sel) => `${sel}:not([class*=slint\\,ignore]):not([class*=slint\\,no_run])`).join(",");
.map((sel) => `${sel}:not([class*=slint\\,ignore]):not([class*=slint\\,no-preview])`).join(",");
var elements = document.querySelectorAll(selector);
for (var i = 0; i < elements.length; ++i) {
let source = elements[i].innerText;