70 lines
1.9 KiB
TypeScript

import path from 'node:path';
import { defineConfig } from 'vitepress';
import { generateSidebar } from './sidebar';
const docsDir = path.resolve(import.meta.dirname, '..');
export default defineConfig({
title: 'Uniswap AI',
description: 'AI tools for building on the Uniswap protocol',
head: [
['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }],
['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=Inter:wght@100..900&family=JetBrains+Mono:wght@100..800&display=swap',
},
],
],
themeConfig: {
logo: '/logo.svg',
nav: [
{ text: 'Home', link: '/' },
{ text: 'Getting Started', link: '/getting-started/' },
{
text: 'Guides',
items: [
{ text: 'Architecture', link: '/architecture/' },
{ text: 'Plugins', link: '/plugins/' },
{ text: 'Contributing', link: '/contributing/' },
],
},
{ text: 'Skills', link: '/skills/' },
{ text: 'Evals', link: '/evals/' },
],
sidebar: generateSidebar(docsDir),
socialLinks: [{ icon: 'github', link: 'https://github.com/uniswap/uniswap-ai' }],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2025-2026 Uniswap Labs',
},
search: {
provider: 'local',
},
editLink: {
pattern: 'https://github.com/uniswap/uniswap-ai/edit/main/docs/:path',
text: 'Edit this page on GitHub',
},
},
markdown: {
theme: {
light: 'github-light',
dark: 'github-dark',
},
// Enable Solidity syntax highlighting via Shiki
languages: ['solidity', 'typescript', 'javascript', 'json', 'bash', 'yaml'],
},
});