wasmhub 0.3.2

Download and manage WebAssembly runtimes for multiple languages
Documentation
// START IMPORT REQUIRE WORKAROUND
// To make 11ty --serve work with JSON imports
// https://github.com/11ty/eleventy/issues/3128#issuecomment-1878745864
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
// END IMPORT REQUIRE WORKAROUND

// START JSON IMPORT WORKAROUND
// import userConfig from "../settings.json" with { "type": "json" };
const userConfig = require("../settings.json");
// END JSON IMPORT WORKAROUND

export default {
    lang: userConfig.lang ?? "en",
    siteTitle: userConfig.siteTitle ?? "11ty LibDoc",
    siteDescription: userConfig.siteDescription ?? "An Eleventy starter project to craft slick documentation",
    siteLogoUrl: userConfig.siteLogoUrl ?? "",
    siteLogoMaxHeight: userConfig.siteLogoMaxHeight ?? 60,
    author: userConfig.author ?? false,
    faviconUrl: userConfig.faviconUrl ?? "/favicon.png",
    ogImageUrl: userConfig.ogImageUrl ?? "https://raw.githubusercontent.com/ita-design-system/ita-medias/refs/heads/main/ogimage-11ty-libdoc.png",
    customLinks: userConfig.customLinks ?? [],
    blogTitle: userConfig.blogTitle ?? "Blog Posts",
    blogDescription: userConfig.blogDescription ?? false,
    blogAuthor: userConfig.blogAuthor ?? false,
    blogSlug: userConfig.blogSlug ?? "posts",
    displayTagsListLink: userConfig.displayTagsListLink ?? true,
    tocEnabled: userConfig.tocEnabled ?? true,
    tocHtmlTags: userConfig.tocHtmlTags ?? ["h1", "h2", "h3", "h4", "h5", "h6"],
    tocMinTags: userConfig.tocMinTags ?? 1,
    htmlBasePathPrefix: userConfig.htmlBasePathPrefix ?? "",
    sandboxRunSwitch: userConfig.sandboxRunSwitch ?? true,
    searchEnabled: userConfig.searchEnabled ?? true,
    roundedImagesCorners: userConfig.roundedImagesCorners ?? true,
    editThisPageRootUrl: userConfig.editThisPageRootUrl ?? false,
    imgBgColorLightMode: userConfig.imgBgColorLightMode ?? "transparent",
    imgBgColorDarkMode: userConfig.imgBgColorDarkMode ?? "transparent",
    productionUrl: userConfig.productionUrl ?? "",
    ogImageUrlForEachTag: userConfig.ogImageUrlForEachTag ?? {}
};