// retoor <retoor@molodetz.nl>

import { CodeBlock } from "./CodeBlock.js";

export class CodeCopy {
    constructor(root = document) {
        root.querySelectorAll(".docs-content pre").forEach((pre) => {
            if (pre.querySelector("code")) CodeBlock.enhance(pre);
        });
    }
}

window.CodeCopy = CodeCopy;
