Add TypeScript style guide

This commit is contained in:
Alex Okrushko
2021-01-22 21:32:51 -08:00
committed by Stephen Hicks
parent d5b5104763
commit bfa71446db
3 changed files with 2447 additions and 4 deletions
+4
View File
@@ -41,6 +41,10 @@ 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");
}
pre.className = code.className;
pre.innerHTML = code.innerHTML;
});