Skip to content

Commit

Permalink
Updated vitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Nov 9, 2024
1 parent b7f263d commit 719c5b7
Show file tree
Hide file tree
Showing 5 changed files with 1,716 additions and 566 deletions.
62 changes: 62 additions & 0 deletions Documentation/.vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { defineConfig } from 'vitepress';

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'XValid',
description: 'A simple C# validator library.',
base: '/xvalid/',
lastUpdated: true,
outDir: '../dist',
head: [['link', { rel: 'icon', href: '/xvalid/logo.png' }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Getting Started', link: '/get-started' },
{ text: 'API Reference', link: '/ref' },
],
editLink: {
pattern:
'https://github.com/Leo-Corporation/Synethia/edit/main/Documentation/:path',
text: 'Edit this page on GitHub',
},
sidebar: [
{
text: 'Start',
items: [
{ text: 'Home', link: '/' },
{ text: 'Getting Started', link: '/get-started' },
{ text: 'Contribute', link: '/contribute' },
],
},
{
text: 'API Reference',
items: [
{ text: 'EmailValidator', link: '/api/email-validator' },
{ text: 'ISBNValidator', link: '/api/isbn-validator' },
{ text: 'IBANValidator', link: '/api/iban-validator' },
{ text: 'CreditCardValidator', link: '/api/credit-card-validator' },
{ text: 'IPAddressValidator', link: '/api/ip-address-validator' },
{ text: 'CoordinateValidator', link: '/api/coordinate-validator' },
],
},
],

footer: {
message: 'Released under the MIT License.',
copyright: `Copyright © ${new Date().getFullYear()} Devyus`,
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/DevyusCode/XValid' },
{
icon: 'twitter',
link: 'https://twitter.com/LeoCorpNews',
},
{
icon: 'youtube',
link: 'https://www.youtube.com/channel/UC283Dtf6EJ8eKfRoo0ISmqg',
},
],
outline: [1, 3],
},
});
62 changes: 0 additions & 62 deletions Documentation/.vitepress/config.ts

This file was deleted.

2 changes: 2 additions & 0 deletions Documentation/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ html.dark {

/* background colors */
--vp-c-bg: #0a0a1e;
--vp-sidebar-bg-color: #141428;
--vp-code-block-bg: #141428;
--vp-c-bg-light: #141428;
--vp-c-bg-lighter: #1e1e32;
--vp-code-bg-color: #1e1e32;
Expand Down
Loading

0 comments on commit 719c5b7

Please sign in to comment.