Skip to content

Commit 0f41e08

Browse files
committed
fix: restore removed function
1 parent 21f478c commit 0f41e08

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs_theme/src/js/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@ import "../../node_modules/bootstrap/js/dist/tooltip";
1313

1414
import "../scss/styles.scss";
1515

16+
function setupPrettify() {
17+
const codeBlocks = document.querySelectorAll("pre code");
18+
codeBlocks.forEach((block) => {
19+
block.parentElement.classList.add("prettyprint", "well");
20+
});
21+
}
22+
1623
setupPrettify();

0 commit comments

Comments
 (0)