|
| 1 | +import { defaultTheme } from '@vuepress/theme-default' |
| 2 | +import { defineUserConfig } from 'vuepress/cli' |
| 3 | +import { viteBundler } from '@vuepress/bundler-vite' |
| 4 | +import { mdEnhancePlugin } from "vuepress-plugin-md-enhance" |
| 5 | +import { redirectPlugin } from '@vuepress/plugin-redirect' |
| 6 | +import { docsearchPlugin } from '@vuepress/plugin-docsearch' |
| 7 | +import { sidebarConfig } from './sidebar.js' |
| 8 | +import { removeHtmlExtensionPlugin } from 'vuepress-plugin-remove-html-extension' |
| 9 | +import { seoPlugin } from '@vuepress/plugin-seo' |
| 10 | + |
| 11 | +export default defineUserConfig({ |
| 12 | + lang: 'en-US', |
| 13 | + title: 'Hypervel', |
| 14 | + description: 'A Coroutine PHP Framework for Laravel Artisans.', |
| 15 | + |
| 16 | + ignoreDeadLinks: true, |
| 17 | + bundler: viteBundler(), |
| 18 | + |
| 19 | + plugins: [ |
| 20 | + seoPlugin({ |
| 21 | + hostname: 'https://hypervel.org', |
| 22 | + fallBackImage: 'https://hypervel.org/home.png', |
| 23 | + customHead: (head) => { |
| 24 | + head.push(['title', {}, 'Hypervel - A Coroutine PHP Framework for Laravel Artisans.']); |
| 25 | + }, |
| 26 | + ogp: (ogp, page) => ({ |
| 27 | + ...ogp, |
| 28 | + 'og:title': 'Hypervel - A Coroutine PHP Framework for Laravel Artisans', |
| 29 | + 'og:description': "Hypervel is a Laravel-style framework with native coroutine support for ultra-high performance.", |
| 30 | + 'twitter:title': 'Hypervel - A Coroutine PHP Framework For Laravel Artisans', |
| 31 | + 'twitter:description': "Hypervel is a Laravel-style framework with native coroutine support for ultra-high performance.", |
| 32 | + 'twitter:image': 'https://hypervel.org/home.png', |
| 33 | + 'twitter:card': 'summary_large_image', |
| 34 | + }), |
| 35 | + }), |
| 36 | + removeHtmlExtensionPlugin(), |
| 37 | + mdEnhancePlugin({ |
| 38 | + hint: true, |
| 39 | + tasklist: true, |
| 40 | + include: true, |
| 41 | + tabs: true, |
| 42 | + align: true, |
| 43 | + chart: true, |
| 44 | + }), |
| 45 | + redirectPlugin({ |
| 46 | + config: { |
| 47 | + '/docs': '/docs/introduction.html', |
| 48 | + }, |
| 49 | + }), |
| 50 | + docsearchPlugin({ |
| 51 | + appId: 'VH8TNYFP5F', |
| 52 | + apiKey: '434aa2025192c8d2fb19499cb78e5d48', |
| 53 | + indexName: 'hypervel' |
| 54 | + }), |
| 55 | + ], |
| 56 | + |
| 57 | + theme: defaultTheme({ |
| 58 | + logo: 'icon.svg', |
| 59 | + |
| 60 | + docsRepo: 'hypervel/hypervel.org', |
| 61 | + |
| 62 | + docsBranch: 'main/docs', |
| 63 | + |
| 64 | + navbar: [ |
| 65 | + '/', |
| 66 | + { |
| 67 | + text: 'Documentation', |
| 68 | + link: '/docs/introduction', |
| 69 | + }, |
| 70 | + { |
| 71 | + text: 'GitHub', |
| 72 | + link: 'https://github.com/hypervel/hypervel', |
| 73 | + } |
| 74 | + ], |
| 75 | + |
| 76 | + sidebar: sidebarConfig, |
| 77 | + |
| 78 | + sidebarDepth: 0, |
| 79 | + }), |
| 80 | +}) |
0 commit comments