You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ass/docs/.vitepress/config.ts

104 lines
2.5 KiB

import { defineConfig } from 'vitepress';
const LOGO = 'https://i.tycrek.dev/ass';
const GIT_BRANCH = 'dev/0.15.0'
// https://vitepress.dev/reference/site-config
export default defineConfig({
lang: 'en-US',
title: 'ass docs',
titleTemplate: ':title ~ ass docs',
description: 'Documentation for ass, an open-source ShareX server',
cleanUrls: true,
lastUpdated: true,
head: [
['meta', { property: 'og:image', content: LOGO }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'twitter:domain', content: 'ass.tycrek.dev' }],
['meta', { property: 'twitter:image', content: LOGO }],
['link', { rel: 'icon', href: LOGO }],
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: LOGO,
nav: [
{ text: 'Home', link: '/' },
{
text: 'Install', items: [
{ text: 'Docker', link: '/install/docker' },
{ text: 'Local', link: '/install/local' }
]
},
{ text: 'Configure', link: '/configure/' }
],
sidebar: [
{
text: 'Install',
link: '/install/',
items: [
{ text: 'Docker', link: '/install/docker' },
{ text: 'Local', link: '/install/local' }
]
},
{
text: 'Configure',
link: '/configure/',
items: [
{
text: 'SQL',
items: [
{
text: 'MySQL',
link: '/configure/sql/mysql'
},
{
text: 'PostgreSQL',
link: '/configure/sql/postgresql'
}
]
},
{
text: 'Clients',
items: [
{
text: 'ShareX',
link: '/configure/clients/sharex'
},
{
text: 'Flameshot',
link: '/configure/clients/flameshot'
}
]
}
]
},
{
text: 'Customize',
link: '/customize/',
items: [
{ text: 'Colors', link: '/customize/colors' }
]
}
],
editLink: {
pattern: `https://github.com/tycrek/ass/edit/${GIT_BRANCH}/docs/:path`,
text: 'Edit this page on GitHub',
},
footer: {
message: 'Released under the ISC License.',
copyright: 'Copyright © 2023 tycrek & ass contributors',
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/tycrek/ass/' },
{ icon: 'discord', link: 'https://discord.gg/wGZYt5fasY' }
]
}
});