All files index.js

0% Statements 0/5
0% Branches 0/2
0% Functions 0/3
0% Lines 0/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29                                                         
import { h } from "vue";
import DefaultTheme from "vitepress/theme";
 
import Layout from "./Layout.vue";
import "./brand.css";
 
/**
 * Create an Arrai theme with product-specific layout slots and application setup.
 *
 * @param {object} options - Theme extension options.
 * @param {object} [options.layoutSlots] - Slots forwarded to the shared layout.
 * @param {(context: object) => void} [options.enhanceApp] - Product application setup.
 * @returns {object} VitePress theme.
 */
export const createArraiTheme = ({ layoutSlots = {}, enhanceApp } = {}) => ({
    ...DefaultTheme,
    Layout: () => h(Layout, null, layoutSlots),
    enhanceApp(context) {
        DefaultTheme.enhanceApp?.(context);
        enhanceApp?.(context);
    },
});
 
export { default as ArraiLayout } from "./Layout.vue";
export { default as Breadcrumbs } from "./components/Breadcrumbs.vue";
export { breadcrumbsForRoute } from "./breadcrumbs.js";
 
export default createArraiTheme();