docs/.vitepress/config.mts

165 lines
5.9 KiB
TypeScript
Raw Normal View History

import tailwindcss from "@tailwindcss/vite";
2024-04-23 01:55:10 +02:00
import { defineConfig } from "vitepress";
2023-11-26 00:35:25 +01:00
// https://vitepress.dev/reference/site-config
export default defineConfig({
2024-04-23 01:55:10 +02:00
title: "Lysand Documentation",
description: "Documentation for Lysand, a new federated protocol",
vite: {
plugins: [tailwindcss()],
},
vue: {
template: {
compilerOptions: {
isCustomElement: (tag) => tag === "iconify-icon",
},
},
},
2024-04-23 01:55:10 +02:00
srcDir: "docs",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Specification", link: "/spec" },
{ text: "Objects", link: "/objects" },
{ text: "Security", link: "/security/api" },
{ text: "Extensions", link: "/extensions" },
2024-04-23 01:55:10 +02:00
],
2023-11-26 00:35:25 +01:00
2024-04-23 01:55:10 +02:00
sidebar: [
{
text: "Specification",
items: [
{ text: "Spec", link: "/spec" },
{ text: "Objects", link: "/objects" },
],
2024-04-23 01:55:10 +02:00
},
{
text: "Structures",
items: [
{
text: "Content Format",
link: "/structures/content-format",
},
{ text: "Custom Emoji", link: "/structures/custom-emoji" },
{ text: "Collection", link: "/structures/collection" },
],
},
{
text: "Groups",
items: [{ text: "Groups", link: "/groups" }],
2024-04-23 01:55:10 +02:00
},
{
text: "Security",
2024-04-23 01:55:10 +02:00
items: [
{ text: "API", link: "/security/api" },
{ text: "Keys", link: "/security/keys" },
{ text: "Signing", link: "/security/signing" },
2024-04-23 01:55:10 +02:00
],
},
{
text: "Objects",
items: [
{
text: "Publications",
link: "/objects/publications",
items: [
{ text: "Note", link: "/objects/note" },
{ text: "Patch", link: "/objects/patch" },
],
},
{
text: "Actors",
link: "/objects/actors",
items: [{ text: "User", link: "/objects/user" }],
},
{
text: "Actions",
link: "/objects/actions",
items: [
{ text: "Like", link: "/objects/like" },
{ text: "Dislike", link: "/objects/dislike" },
{ text: "Follow", link: "/objects/follow" },
{
text: "FollowAccept",
link: "/objects/follow-accept",
},
{
text: "FollowReject",
link: "/objects/follow-reject",
},
{ text: "Announce", link: "/objects/announce" },
{ text: "Undo", link: "/objects/undo" },
],
},
{
text: "Server Metadata",
link: "/objects/server-metadata",
},
],
},
{
text: "Federation",
items: [
{ text: "Endpoints", link: "/federation/endpoints" },
{
text: "User Discovery",
link: "/federation/user-discovery",
},
{ text: "Server Actors", link: "/federation/server-actor" },
],
},
{
text: "Extensions",
link: "/extensions",
items: [
{
text: "Custom Emojis",
link: "/extensions/custom-emojis",
},
{
text: "Microblogging",
link: "/extensions/microblogging",
},
{ text: "Reactions", link: "/extensions/reactions" },
{ text: "Polls", link: "/extensions/polls" },
{ text: "Is Cat", link: "/extensions/is-cat" },
{
text: "Server Endorsements",
link: "/extensions/server-endorsement",
},
{ text: "Events", link: "/extensions/events" },
{ text: "Reports", link: "/extensions/reports" },
{ text: "Vanity", link: "/extensions/vanity" },
{
text: "Interactivity",
link: "/extensions/interactivity",
},
2024-04-23 01:55:10 +02:00
],
},
],
2023-11-26 00:35:25 +01:00
footer: {
message: "Released under the MIT License.",
copyright: "Copyright © 2023-present Gaspard Wierzbinski",
},
2024-04-23 01:55:10 +02:00
socialLinks: [
{ icon: "github", link: "https://github.com/lysand-org/" },
],
search: {
provider: "local",
},
editLink: {
pattern: "https://github.com/lysand-org/docs/edit/main/docs/:path",
},
externalLinkIcon: true,
logo: "https://cdn.lysand.org/logo.webp",
2023-11-26 02:57:42 +01:00
},
2024-04-23 01:55:10 +02:00
lastUpdated: true,
cleanUrls: true,
titleTemplate: ":title · Lysand Docs",
2024-04-23 01:55:10 +02:00
head: [["link", { rel: "icon", href: "/favicon.png", type: "image/png" }]],
lang: "en-US",
});