Skip to content

Commit 719c5b7

Browse files
committed
Updated vitepress
1 parent b7f263d commit 719c5b7

File tree

5 files changed

+1716
-566
lines changed

5 files changed

+1716
-566
lines changed

Documentation/.vitepress/config.mjs

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
});

Documentation/.vitepress/config.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

Documentation/.vitepress/theme/custom.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ html.dark {
1717

1818
/* background colors */
1919
--vp-c-bg: #0a0a1e;
20+
--vp-sidebar-bg-color: #141428;
21+
--vp-code-block-bg: #141428;
2022
--vp-c-bg-light: #141428;
2123
--vp-c-bg-lighter: #1e1e32;
2224
--vp-code-bg-color: #1e1e32;

0 commit comments

Comments
 (0)