mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
102 lines
2.8 KiB
TypeScript
102 lines
2.8 KiB
TypeScript
import taskLists from "@hackmd/markdown-it-task-lists";
|
|
import implicitFigures from "markdown-it-image-figures";
|
|
import { defineConfig } from "vitepress";
|
|
import { tabsMarkdownPlugin } from "vitepress-plugin-tabs";
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "Versia Server Docs",
|
|
lang: "en-US",
|
|
description: "Documentation for Versia Server APIs",
|
|
markdown: {
|
|
config: (md): void => {
|
|
md.use(implicitFigures, {
|
|
figcaption: "alt",
|
|
copyAttrs: "^class$",
|
|
});
|
|
|
|
md.use(taskLists);
|
|
|
|
md.use(tabsMarkdownPlugin);
|
|
},
|
|
math: true,
|
|
},
|
|
cleanUrls: true,
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
nav: [
|
|
{ text: "Home", link: "/" },
|
|
{
|
|
text: "Versia Protocol",
|
|
link: "https://versia.pub",
|
|
target: "_blank",
|
|
},
|
|
],
|
|
|
|
sidebar: [
|
|
{
|
|
text: "Installation",
|
|
link: "/setup/installation",
|
|
},
|
|
{
|
|
text: "CLI",
|
|
link: "/cli",
|
|
},
|
|
{
|
|
text: "API",
|
|
items: [
|
|
{
|
|
text: "Emojis",
|
|
link: "/api/emojis",
|
|
},
|
|
{
|
|
text: "Reactions",
|
|
link: "/api/reactions",
|
|
},
|
|
{
|
|
text: "Roles",
|
|
link: "/api/roles",
|
|
},
|
|
{
|
|
text: "Challenges",
|
|
link: "/api/challenges",
|
|
},
|
|
{
|
|
text: "SSO",
|
|
link: "/api/sso",
|
|
},
|
|
{
|
|
text: "Mastodon Extensions",
|
|
link: "/api/mastodon",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
text: "Frontend",
|
|
items: [
|
|
{
|
|
text: "Authentication",
|
|
link: "/frontend/auth",
|
|
},
|
|
{
|
|
text: "Routes",
|
|
link: "/frontend/routes",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
|
|
socialLinks: [
|
|
{ icon: "github", link: "https://github.com/versia-pub/server" },
|
|
],
|
|
|
|
search: {
|
|
provider: "local",
|
|
},
|
|
|
|
logo: "https://cdn.versia.pub/branding/icon.svg",
|
|
},
|
|
head: [["link", { rel: "icon", href: "/favicon.png", type: "image/png" }]],
|
|
titleTemplate: ":title • Versia Server Docs",
|
|
});
|