102 lines
2.7 KiB
TypeScript
102 lines
2.7 KiB
TypeScript
import { defineConfig } from "vitepress";
|
|
import UnoCSS from "unocss/vite";
|
|
import { emojiRender, defs, movePlugin } from "./configs/";
|
|
import { generateSidebar } from "vitepress-sidebar";
|
|
|
|
// @unocss-include
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "DP-Salad",
|
|
description: "A guide to fully deploy the DP-Salad Stack",
|
|
cleanUrls: true,
|
|
appearance: "dark",
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
logo: "/saladicon.png",
|
|
nav: [
|
|
{ text: "Home", link: "/" },
|
|
{ text: "FAQ", link: "/faq" },
|
|
{ text: "Docker Compose", link: "/docker-compose" },
|
|
{ text: "Maintenance", link: "/maintenance/maintain-guide" },
|
|
{
|
|
text: "Install",
|
|
items: [
|
|
{ text: "DP-Salad Requirements", link: "/install/requirements" },
|
|
{
|
|
text: "Installing Debian and Portainer",
|
|
link: "/install/dp-setup",
|
|
},
|
|
{ text: "Configuration", link: "/install/dp-config" },
|
|
{ text: "DP-Salad Setup", link: "/install/salad-setup" },
|
|
],
|
|
},
|
|
{
|
|
text: "Config",
|
|
items: [
|
|
{ text: "Swag Config", link: "/configuration/swag-config" },
|
|
{ text: "Authelia Config", link: "/configuration/auth-config" },
|
|
{ text: "LLDAP Config", link: "/configuration/lldap-config" },
|
|
{ text: "Authy/Duo Config", link: "/configuration/authy-duo-config" },
|
|
],
|
|
},
|
|
{
|
|
text: "Misc",
|
|
items: [
|
|
{ text: "X11 Guide", link: "/x11-guide" },
|
|
{ text: "Cloudflare Tunneling", link: "/cf-tunnel" },
|
|
],
|
|
},
|
|
],
|
|
|
|
sidebar: generateSidebar({
|
|
documentRootPath: "/",
|
|
collapsed: false,
|
|
capitalizeFirst: true,
|
|
useTitleFromFrontmatter: true,
|
|
manualSortFileNameByPriority: ["home.md"],
|
|
excludePattern: [
|
|
"changelog.md",
|
|
"cf-tunnel.md",
|
|
"faq.md",
|
|
"docker-compose.md",
|
|
"x11-guide.md",
|
|
],
|
|
}),
|
|
|
|
search: {
|
|
provider: "local",
|
|
},
|
|
footer: {
|
|
message: "Docs created by @ldez",
|
|
copyright: "Copyright © 2024-present @Cdez",
|
|
},
|
|
},
|
|
head: [
|
|
["link", { rel: "icon", type: "image/x-icon", href: "/asset/favicon.ico" }],
|
|
],
|
|
markdown: {
|
|
emoji: { defs },
|
|
config(md) {
|
|
md.use(emojiRender);
|
|
},
|
|
},
|
|
vite: {
|
|
plugins: [
|
|
UnoCSS({
|
|
configFile: "../unocss.config.ts",
|
|
}),
|
|
{
|
|
name: "custom:adjust-order",
|
|
configResolved(c) {
|
|
movePlugin(
|
|
c.plugins as any,
|
|
"vitepress",
|
|
"before",
|
|
"unocss:transformers:pre"
|
|
);
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|