initial corp site
This commit is contained in:
89
src/.vitepress/config.mts
Normal file
89
src/.vitepress/config.mts
Normal file
@@ -0,0 +1,89 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: "Dexorder",
|
||||
description: "DeFi trading tools",
|
||||
head: [
|
||||
[ 'link', { rel: 'icon', href: '/favicon.ico' }],
|
||||
[ 'link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
|
||||
[ 'link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
|
||||
[ 'link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Victor+Mono:ital,wght@0,100..700;1,100..700&display=swap' }],
|
||||
],
|
||||
transformHead() {
|
||||
// put the path of local assets into the <head>
|
||||
let fontFile = assets.find(file => /forgotten_futurist\.\w+\.ttf/.test(file))
|
||||
// adjust the regex accordingly for new fonts
|
||||
// fontFile ||= assets.find(file => /forgotten_futurist\.\w+\.woff2/.test(file))
|
||||
if (fontFile) {
|
||||
return [
|
||||
[
|
||||
'link',
|
||||
{
|
||||
rel: 'preload',
|
||||
href: fontFile,
|
||||
as: 'font',
|
||||
type: 'font/ttf',
|
||||
crossorigin: ''
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
logo: {
|
||||
light: '/dexorder_full_lightmode.svg',
|
||||
dark: '/dexorder_full_darkmode.svg',
|
||||
},
|
||||
siteTitle: ' ',
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Docs', link: '/how-it-works' },
|
||||
{ text: 'App', link: 'https://app.dexorder.trade/', target: 'dexorderapp', props: {} }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: 'How It Works',
|
||||
link: '/how-it-works',
|
||||
},
|
||||
// {
|
||||
// text: 'Examples',
|
||||
// items: [
|
||||
// { text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
// { text: 'Runtime API Examples', link: '/api-examples' }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
text: 'Fees',
|
||||
link: '/fees',
|
||||
},
|
||||
{
|
||||
text: 'Terms of Service',
|
||||
link: '/terms-of-service',
|
||||
},
|
||||
{
|
||||
text: 'Execution Policy',
|
||||
link: '/execution-policy',
|
||||
},
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'twitter', link: 'https://twitter.com/Dexorder_trade' },
|
||||
{ icon: 'discord', link: 'https://discord.gg/fqp9JXXQyt' },
|
||||
{ icon: 'github', link: 'https://github.com/dexorder-trade/contract' },
|
||||
],
|
||||
|
||||
footer: {
|
||||
copyright: `© ${new Date().getFullYear()} Dexorder Trading Services Ltd. (BVI)`,
|
||||
},
|
||||
|
||||
},
|
||||
markdown: {
|
||||
config: (md) => {
|
||||
md.disable(['replacements'], false)
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user