Docs/.vitepress/config.ts

64 lines
2.1 KiB
TypeScript
Raw Normal View History

2023-06-11 19:11:44 +00:00
import { defineConfig } from 'vitepress'
2024-03-14 14:34:06 +00:00
const ogUrl = 'https://docs.lona-development.org/'
2023-06-25 09:56:05 +00:00
const ogImage = `${ogUrl}og.png#1`
2024-02-02 14:38:22 +00:00
const title = 'Lona Development'
2024-03-14 14:34:06 +00:00
const description = 'JSON based Database written in PHP'
2023-06-25 09:56:05 +00:00
2023-06-11 19:11:44 +00:00
// https://vitepress.dev/reference/site-config
export default defineConfig({
2023-06-25 09:56:05 +00:00
head: [
['link', { rel: 'icon', href: '/favicon.svg', type: 'image/svg+xml' }],
2023-08-14 08:22:08 +00:00
['meta', { name: 'theme-color', content: '#86EFAC' }],
2024-02-02 14:38:22 +00:00
['meta', { name: 'author', content: 'Lona Devs' }],
2023-06-25 09:56:05 +00:00
['meta', { property: 'og:type', content: 'website' }],
['meta', { name: 'og:title', content: title }],
['meta', { name: 'og:description', content: description }],
['meta', { property: 'og:image', content: ogImage }],
['meta', { name: 'twitter:title', content: title }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:image', content: ogImage }],
2024-02-02 14:38:22 +00:00
['meta', { name: 'twitter:site', content: '@lona_devs' }],
2023-06-25 09:56:05 +00:00
['meta', { name: 'twitter:url', content: ogUrl }],
],
2024-02-02 14:38:22 +00:00
title: "Lona Development",
2024-03-14 14:34:06 +00:00
description: "JSON based database and written in PHP",
2023-06-11 19:11:44 +00:00
themeConfig: {
2023-06-25 09:58:21 +00:00
logo: '/favicon.svg',
2023-06-11 19:11:44 +00:00
search: {
provider: 'local'
},
nav: [
2024-02-02 14:38:22 +00:00
{ text: 'Home', link: 'https://lona-development.org/' },
{ text: 'Guide', link: '/guide/getting-started' }
2023-06-11 19:11:44 +00:00
],
sidebar: [
{
text: 'Introduction',
items: [
2024-03-14 14:34:06 +00:00
{ text: 'Getting Started', link: '/guide/getting-started' },
{ text: 'Installation', link: '/guide/install' },
{ text: 'Webinterface', link: '/guide/webinterface' },
{ text: 'Clients', link: '/guide/clients' },
{ text: 'Plugins', link: '/guide/plugins' }
]
},
{
text: 'Clients',
items: [
{ text: 'PHP', link: '/client/php' },
{ text: 'JavaScript', link: '/client/javascript' },
{ text: 'Python', link: '/client/python' }
2023-06-11 19:11:44 +00:00
]
}
],
socialLinks: [
2023-08-12 09:54:12 +00:00
{ icon: 'discord', link: 'https://discord.gg/tBWVGQt8sP' },
2024-03-14 14:34:06 +00:00
{ icon: 'github', link: 'https://github.com/LonaDB' }
2023-06-11 19:11:44 +00:00
]
}
})