diff --git a/docs_theme/src/js/main.js b/docs_theme/src/js/main.js index fa74d1a15..c5b856568 100644 --- a/docs_theme/src/js/main.js +++ b/docs_theme/src/js/main.js @@ -13,4 +13,11 @@ import "../../node_modules/bootstrap/js/dist/tooltip"; import "../scss/styles.scss"; +function setupPrettify() { + const codeBlocks = document.querySelectorAll("pre code"); + codeBlocks.forEach((block) => { + block.parentElement.classList.add("prettyprint", "well"); + }); +} + setupPrettify();