|
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: 'XValid', |
| 6 | + description: 'A simple C# validator library.', |
| 7 | + base: '/xvalid/', |
| 8 | + lastUpdated: true, |
| 9 | + outDir: '../dist', |
| 10 | + head: [['link', { rel: 'icon', href: '/xvalid/logo.png' }]], |
| 11 | + themeConfig: { |
| 12 | + // https://vitepress.dev/reference/default-theme-config |
| 13 | + nav: [ |
| 14 | + { text: 'Home', link: '/' }, |
| 15 | + { text: 'Getting Started', link: '/get-started' }, |
| 16 | + { text: 'API Reference', link: '/ref' }, |
| 17 | + ], |
| 18 | + editLink: { |
| 19 | + pattern: |
| 20 | + 'https://github.com/Leo-Corporation/Synethia/edit/main/Documentation/:path', |
| 21 | + text: 'Edit this page on GitHub', |
| 22 | + }, |
| 23 | + sidebar: [ |
| 24 | + { |
| 25 | + text: 'Start', |
| 26 | + items: [ |
| 27 | + { text: 'Home', link: '/' }, |
| 28 | + { text: 'Getting Started', link: '/get-started' }, |
| 29 | + { text: 'Contribute', link: '/contribute' }, |
| 30 | + ], |
| 31 | + }, |
| 32 | + { |
| 33 | + text: 'API Reference', |
| 34 | + items: [ |
| 35 | + { text: 'EmailValidator', link: '/api/email-validator' }, |
| 36 | + { text: 'ISBNValidator', link: '/api/isbn-validator' }, |
| 37 | + { text: 'IBANValidator', link: '/api/iban-validator' }, |
| 38 | + { text: 'CreditCardValidator', link: '/api/credit-card-validator' }, |
| 39 | + { text: 'IPAddressValidator', link: '/api/ip-address-validator' }, |
| 40 | + { text: 'CoordinateValidator', link: '/api/coordinate-validator' }, |
| 41 | + ], |
| 42 | + }, |
| 43 | + ], |
| 44 | + |
| 45 | + footer: { |
| 46 | + message: 'Released under the MIT License.', |
| 47 | + copyright: `Copyright © ${new Date().getFullYear()} Devyus`, |
| 48 | + }, |
| 49 | + socialLinks: [ |
| 50 | + { icon: 'github', link: 'https://github.com/DevyusCode/XValid' }, |
| 51 | + { |
| 52 | + icon: 'twitter', |
| 53 | + link: 'https://twitter.com/LeoCorpNews', |
| 54 | + }, |
| 55 | + { |
| 56 | + icon: 'youtube', |
| 57 | + link: 'https://www.youtube.com/channel/UC283Dtf6EJ8eKfRoo0ISmqg', |
| 58 | + }, |
| 59 | + ], |
| 60 | + outline: [1, 3], |
| 61 | + }, |
| 62 | +}); |
0 commit comments