Remove prettyprint from HTML/CSS Style Guide

This is because the internal style guide does not use prettyprint.
This commit is contained in:
Tony Ruscoe committed 2022-01-12 13:47:57 +00:00
1 parent 842b872ac4
commit 53c4d95517
2 files changed
+73 -70

No files matched your search

+6 -3
View File
@@ -41,9 +41,12 @@ window.initStyleGuide = function(init) {
// properly. Fix it by moving the code directly into the pre.
find('pre > code', function(code) {
var pre = code.parentElement;
// internal TS style guide does not want prettyprint
if (code.classList.contains("language-ts")) {
code.classList.add("prettyprint");
// Internal HTML/CSS & TS style guides do not use prettyprint.
if (code.classList.contains('language-css') ||
code.classList.contains('language-django') ||
code.classList.contains('language-html') ||
code.classList.contains('language-ts')) {
code.classList.add('prettyprint');
}
pre.className = code.className;
pre.innerHTML = code.innerHTML;