import { SearchPlugin } from "vitepress-plugin-search";
import { defineConfig } from "vitepress";
module.exports = {
lang: "en-US",
title: 'The Paper Pilot',
description: 'The Paper Pilot\'s Digital Garden',
vite: {
plugins: [
SearchPlugin({
previewLength: 62,
buttonLabel: "Search",
placeholder: "Search website",
allow: [
/site\/garden\/.*/g,
/site\/changelog\/index.md/g,
/site\/index.md/g
],
ignore: [],
})
],
ssr: {
noExternal: [
'@nolebase/vitepress-plugin-highlight-targeted-heading'
]
}
},
sitemap: {
hostname: 'https://thepaperpilot.org'
},
head: [
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto+Mono:ital,wght@0,400;0,600;1,400&display=swap' }],
['link', { rel: 'manifest', href: '/site.webmanifest' }],
['link', { rel: 'alternate', type: "text/mf2+html", href: '/changelog' }],
['link', { rel: 'alternate', type: "application/rss+xml", title: 'Changelog', href: '/changelog/rss' }],
['link', { rel: 'alternate', type: "application/atom+xml", title: 'Changelog', href: '/changelog/atom' }],
['link', { rel: 'alternate', type: "application/json+xml", title: 'Changelog', href: '/changelog/json' }],
['meta', { name: 'og:description', content: 'The Paper Pilot\'s Digital Garden' }]
],
lastUpdated: true,
cleanUrls: 'with-subfolders',
themeConfig: {
outline: 'deep',
nav: [
{ text: "Profectus", link: "https://moddingtree.com" },
{ text: "Incremental Social", link: "https://incremental.social" }
],
socialLinks: [
{ icon: "github", link: "https://github.com/thepaperpilot" },
{ icon: "linkedin", link: "https://www.linkedin.com/pub/anthony-lawn/a9/a98/2" },
{ icon: { svg: `` }, link: "https://matrix.to/#/@thepaperpilot:incremental.social" },
{ icon: { svg: `
` }, link: "https://incremental.social/u/thepaperpilot" }
],
sidebar: [
{
text: "Recommended Pages",
items: [
{ text: "My Projects", link: "/garden/my-projects" },
{ text: "Guide to Incrementals", link: "/garden/guide-to-incrementals" },
{ text: "The Small Web", link: "/garden/the-small-web" },
{ text: "Fedi v2", link: "/garden/fedi-v2" },
]
},
{ text: "Changelog", link: "/changelog" }
]
}
}