-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,033 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,164 @@ | ||
import { defineConfig } from 'vitepress' | ||
import tailwindcss from "@tailwindcss/vite"; | ||
import { defineConfig } from "vitepress"; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "Lysand Documentation", | ||
description: "Documentation for Lysand, a new federated protocol", | ||
srcDir: 'docs', | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Specification', link: '/spec' }, | ||
], | ||
title: "Lysand Documentation", | ||
description: "Documentation for Lysand, a new federated protocol", | ||
vite: { | ||
plugins: [tailwindcss()], | ||
}, | ||
vue: { | ||
template: { | ||
compilerOptions: { | ||
isCustomElement: (tag) => tag === "iconify-icon", | ||
}, | ||
}, | ||
}, | ||
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" }, | ||
], | ||
|
||
sidebar: [ | ||
{ | ||
text: 'Spec Details', | ||
items: [ | ||
{ text: 'Spec', link: '/spec' }, | ||
] | ||
}, | ||
{ | ||
text: "Structures", | ||
items: [ | ||
{ text: "Content Format", link: '/structures/content-format' }, | ||
{ text: "Custom Emoji", link: '/structures/custom-emoji' }, | ||
{ text: "Collection", link: '/structures/collection' }, | ||
] | ||
}, | ||
{ | ||
text: "Cryptography", | ||
items: [ | ||
{ text: "Keys", link: "/cryptography/keys" }, | ||
{ text: "Signing", link: "/cryptography/signing" }, | ||
] | ||
}, | ||
{ | ||
text: "Objects", | ||
link: "/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: "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" }, | ||
] | ||
} | ||
], | ||
sidebar: [ | ||
{ | ||
text: "Specification", | ||
items: [ | ||
{ text: "Spec", link: "/spec" }, | ||
{ text: "Objects", link: "/objects" }, | ||
], | ||
}, | ||
{ | ||
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" }], | ||
}, | ||
{ | ||
text: "Security", | ||
items: [ | ||
{ text: "API", link: "/security/api" }, | ||
{ text: "Keys", link: "/security/keys" }, | ||
{ text: "Signing", link: "/security/signing" }, | ||
], | ||
}, | ||
{ | ||
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", | ||
}, | ||
], | ||
}, | ||
], | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/lysand-org/' } | ||
], | ||
search: { | ||
provider: "local", | ||
}, | ||
editLink: { | ||
pattern: "https://github.com/lysand-org/docs/edit/main/docs/:path" | ||
footer: { | ||
message: "Released under the MIT License.", | ||
copyright: "Copyright © 2023-present Gaspard Wierzbinski", | ||
}, | ||
|
||
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", | ||
}, | ||
logo: "/logo.png", | ||
}, | ||
lastUpdated: true, | ||
cleanUrls: true, | ||
titleTemplate: ":title · Lysand 2.0 Docs", | ||
head: [ | ||
['link', { rel: 'icon', href: '/favicon.png', type: 'image/png' }] | ||
], | ||
lang: 'en-US', | ||
}) | ||
lastUpdated: true, | ||
cleanUrls: true, | ||
titleTemplate: ":title · Lysand Docs", | ||
head: [["link", { rel: "icon", href: "/favicon.png", type: "image/png" }]], | ||
lang: "en-US", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@import "tailwindcss"; | ||
|
||
@theme { | ||
} | ||
:root { | ||
/* --vp-home-hero-image-background-image: linear-gradient( | ||
to top right, | ||
rgb(249, 168, 212), | ||
rgb(216, 180, 254), | ||
rgb(129, 140, 248) | ||
); | ||
--vp-home-hero-image-filter: brightness(0.8) saturate(1.2); */ | ||
--vp-home-hero-name-color: rgb(249, 168, 212); | ||
--vp-c-brand-1: rgb(249, 168, 212); | ||
--lysand-gradient: linear-gradient( | ||
to right, | ||
rgb(249, 168, 212), | ||
rgb(216, 180, 254), | ||
rgb(129, 140, 248) | ||
); | ||
--vp-color-primary: rgb(249, 168, 212); | ||
--vp-color-secondary: rgb(216, 180, 254); | ||
--vp-button-brand-bg: transparent; | ||
--vp-c-bg-soft: rgb(250, 250, 250); | ||
} | ||
|
||
.dark { | ||
--vp-c-bg: rgb(24, 24, 24); | ||
--vp-c-bg-soft: rgb(32, 32, 32); | ||
} | ||
|
||
.VPFeature { | ||
border-radius: 0.3rem !important; | ||
transition: all 0.2s ease-in-out !important; | ||
} | ||
|
||
.VPFeature:hover { | ||
transform: scale(1.02); | ||
border-color: var(--vp-color-primary); | ||
} | ||
|
||
.VPButton.medium { | ||
border-radius: 0.3rem !important; | ||
transition: all 0.2s ease-in-out !important; | ||
} | ||
|
||
.VPButton.medium:hover { | ||
transform: scale(1.02); | ||
} | ||
|
||
.VPButton.brand { | ||
background: var(--lysand-gradient); | ||
border: none !important; | ||
} | ||
|
||
@media (min-width: 960px) { | ||
.image-container { | ||
width: 50% !important; | ||
margin-right: 0.5rem !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
import "./custom.css"; | ||
|
||
export default DefaultTheme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json", | ||
"organizeImports": { | ||
"enabled": true, | ||
"ignore": ["node_modules", "dist", "cache"] | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
}, | ||
"ignore": ["node_modules", "dist", "cache"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 4, | ||
"ignore": ["node_modules", "dist", "cache"] | ||
} | ||
} |
Oops, something went wrong.