Code Block Variants

This example shows different code block configurations and content types.

#!/bin/bash
# Build CSS into the ./build/ directory:
dotrun build

# Build CSS into the ./build/ directory,
# and start the server:
dotrun

# Dynamically watch for changes to the
# Sass files and build automatically:
dotrun watch

# See a full list of commands:
dotrun exec yarn run --non-interactive
document.addEventListener("DOMContentLoaded", () => {
const examples = document.querySelectorAll(".js-example");

[].slice.call(examples).forEach((placementElement) => {
renderExample(placementElement).catch((error) => {
console.error("Failed to render example", {placementElement, error});
});
});
});