import { defineConfig } from 'vitepress' const TAURI_HOST = '' // https://vitepress.dev/reference/site-config export default defineConfig({ title: "yt2press", description: "video to vitepress", themeConfig: { // https://vitepress.dev/reference/default-theme-config nav: [ { text: 'Home', link: '/' }, ], sidebar: [ { text: 'Preview', // items: [ // { text: 'Markdown Examples', link: '/markdown-examples' }, // { text: 'Runtime API Examples', link: '/api-examples' } // ] } ], socialLinks: [ { icon: 'github', link: 'https://github.com/vuejs/vitepress' } ] }, markdown: { image: { lazyLoading: true, }, config(md) { md.renderer.rules.image = function (tokens, idx, options, env, slf) { const token = tokens[idx]; // Get the alt if it exists const alt = token.attrGet('alt') || token.content || ''; // Fill the title attribute with the alt if it exists if (!token.attrGet('title')) { token.attrSet('title', alt); } return slf.renderToken(tokens, idx, options) } } }, vite: { clearScreen: false, server: { proxy: { '/socket': { target: 'ws://localhost:8080', ws: true, rewriteWsOrigin: true, } }, }, } })