2022-02-19 16:06:11 +00:00
import { defineConfig } from "vitepress" ;
export default defineConfig ( {
srcDir : "src" ,
head : [
[ "link" , { rel : "icon" , type : "image/x-icon" , href : "/favicon.ico" } ] ,
2022-02-19 19:09:11 +00:00
[ "link" , { rel : "canonical" , href : "https://docs.castopod.org/" } ] ,
[ "meta" , { name : "robots" , content : "index, follow" } ] ,
[ "meta" , { property : "og:type" , content : "website" } ] ,
[
"meta" ,
{
property : "og:image" ,
content : "https://docs.castopod.org/images/open-graph.jpg" ,
} ,
] ,
[ "meta" , { property : "og:image:type" , content : "image/jpeg" } ] ,
[ "meta" , { property : "og:image:width" , content : "1200" } ] ,
[ "meta" , { property : "og:image:height" , content : "630" } ] ,
2022-02-19 16:06:11 +00:00
[
"meta" ,
{
2022-02-19 19:09:11 +00:00
property : "og:image:alt" ,
content :
2022-04-15 09:47:48 +00:00
"Castopod mascot waving hello and holding a browser showcasing the Castopod documentation." ,
2022-02-19 16:06:11 +00:00
} ,
] ,
2022-02-19 19:09:11 +00:00
[ "meta" , { property : "og:url" , content : "https://docs.castopod.org/" } ] ,
[ "meta" , { name : "twitter:site" , content : "@castopod" } ] ,
[ "meta" , { name : "twitter:card" , content : "summary_large_image" } ] ,
[ "meta" , { name : "twitter:creator" , content : "@ad_aures" } ] ,
2022-02-19 16:06:11 +00:00
[
"script" ,
{
defer : "defer" ,
"data-domain" : "docs.castopod.org" ,
src : "https://analytics.castopod.org/js/plausible.js" ,
} ,
] ,
] ,
2022-04-15 09:47:48 +00:00
locales : {
"/" : {
lang : "en" ,
title : "Castopod documentation" ,
description :
"Check out the Castopod documentation! Install your own free & open-source podcast host, help make it better by contributing, or simply learn more about Castopod!" ,
} ,
2022-04-15 12:45:32 +00:00
"/fr/" : {
lang : "fr" ,
title : "Documentation Castopod" ,
description :
"Castopod est une plateforme d’ hébergement gratuite & open-source conçue pour les podcasteurs qui veulent échanger et interagir avec leur public." ,
} ,
2022-04-15 09:47:48 +00:00
"/pt-BR/" : {
lang : "pt-BR" ,
2022-04-15 12:45:32 +00:00
title : "Documentação Castopod" ,
2022-04-15 09:47:48 +00:00
description :
"Castopod é uma plataforma de hospedagem de código livre & aberto feita para podcasters que querem se envolver e interagir com seu público." ,
} ,
"/nn-NO/" : {
lang : "nn-NO" ,
title : "Castopod dokumentasjon" ,
description :
"Castopod er ei open og gratis løysing for dei som vil køyra si eiga podkasting-plattform, og for podkastarar som vil engasjera og samhandla med publikum." ,
} ,
} ,
2022-02-19 16:06:11 +00:00
themeConfig : {
2022-02-19 19:09:11 +00:00
logo : "/images/castopod-icon.svg" ,
lastUpdated : "Last Updated" ,
2022-02-20 13:23:57 +00:00
repo : "https://code.castopod.org/adaures/castopod" ,
2022-02-19 19:09:11 +00:00
docsDir : "docs/src" ,
docsBranch : "develop" ,
editLinks : true ,
2022-04-15 09:47:48 +00:00
locales : {
"/" : {
label : "English" ,
selectText : "Languages" ,
2022-04-15 12:45:32 +00:00
repoLabel : "Source code" ,
2022-04-15 09:47:48 +00:00
nav : [
{
text : "Home" ,
link : "https://castopod.org/" ,
} ,
{
text : "Blog" ,
link : "https://blog.castopod.org/" ,
} ,
{
text : "Github" ,
link : "https://github.com/ad-aures/castopod" ,
} ,
] ,
sidebar : {
"/" : getGuideSidebarEn ( ) ,
} ,
2022-02-19 16:06:11 +00:00
} ,
2022-04-15 12:45:32 +00:00
"/fr/" : {
label : "Français" ,
selectText : "Langues" ,
repoLabel : "Code source" ,
nav : [
{
text : "Accueil" ,
link : "https://castopod.org/" ,
} ,
{
text : "Blog" ,
link : "https://blog.castopod.org/" ,
} ,
{
text : "Github" ,
link : "https://github.com/ad-aures/castopod" ,
} ,
] ,
sidebar : {
"/" : getGuideSidebarFr ( ) ,
} ,
} ,
2022-04-15 09:47:48 +00:00
"/pt-BR/" : {
label : "Português do Brasil" ,
selectText : "Línguas" ,
repoLabel : "Código fonte" ,
nav : [
{
text : "Início" ,
link : "https://castopod.org/" ,
} ,
{
text : "Blogue" ,
link : "https://blog.castopod.org/" ,
} ,
{
text : "Github" ,
link : "https://github.com/ad-aures/castopod" ,
} ,
] ,
sidebar : { "/pt-BR/" : getGuideSidebarPtBR ( ) } ,
2022-02-19 16:06:11 +00:00
} ,
2022-04-15 09:47:48 +00:00
"/nn-NO/" : {
label : "Norsk nynorsk" ,
selectText : "Språk" ,
repoLabel : "Kildekode" ,
nav : [
{
text : "Heim" ,
link : "https://castopod.org/" ,
} ,
{
text : "Blogg" ,
link : "https://blog.castopod.org/" ,
} ,
{
text : "Github" ,
link : "https://github.com/ad-aures/castopod" ,
} ,
] ,
sidebar : { "/nn-NO/" : getGuideSidebarNnNO ( ) } ,
2022-02-19 16:06:11 +00:00
} ,
} ,
} ,
} ) ;
2022-04-15 09:47:48 +00:00
function getGuideSidebarEn() {
2022-02-19 16:06:11 +00:00
return [
{
text : "Introduction" ,
link : "/" ,
} ,
{
text : "Getting started" ,
children : [
{ text : "Install" , link : "/getting-started/install" } ,
2022-07-08 16:19:09 +00:00
{
text : "Docker" ,
link : "/getting-started/docker" ,
} ,
2022-02-19 16:06:11 +00:00
{ text : "Security" , link : "/getting-started/security" } ,
{ text : "Update" , link : "/getting-started/update" } ,
2022-10-15 11:22:08 +00:00
{ text : "Auth" , link : "/getting-started/auth" } ,
2022-02-19 16:06:11 +00:00
] ,
} ,
{
text : "Contributing" ,
children : [
{ text : "Guide" , link : "/contributing/guidelines" } ,
{ text : "Dev Setup" , link : "/contributing/setup-development" } ,
] ,
} ,
] ;
}
2022-04-15 09:47:48 +00:00
2022-04-15 12:45:32 +00:00
function getGuideSidebarFr() {
return [
{
text : "Introduction" ,
link : "/fr/" ,
} ,
{
text : "Commencer" ,
children : [
{ text : "Installer" , link : "/fr/getting-started/install" } ,
2022-07-08 16:19:09 +00:00
{
text : "Docker" ,
link : "/fr/getting-started/docker" ,
} ,
2022-04-15 12:45:32 +00:00
{ text : "Sécurité" , link : "/fr/getting-started/security" } ,
{ text : "Mise à jour" , link : "/fr/getting-started/update" } ,
2022-10-15 11:22:08 +00:00
{ text : "Authentification" , link : "/fr/getting-started/auth" } ,
2022-04-15 12:45:32 +00:00
] ,
} ,
{
text : "Contributing" ,
children : [
{ text : "Guide" , link : "/fr/contributing/guidelines" } ,
{ text : "Dev Setup" , link : "/fr/contributing/setup-development" } ,
] ,
} ,
] ;
}
2022-04-15 09:47:48 +00:00
function getGuideSidebarPtBR() {
return [
{
text : "Introdução" ,
link : "/pt-BR/" ,
} ,
{
text : "Começando" ,
children : [
{ text : "Instalar" , link : "/pt-BR/getting-started/install" } ,
2022-07-08 16:19:09 +00:00
{
text : "Docker" ,
link : "/pt-BR/getting-started/docker" ,
} ,
2022-04-15 09:47:48 +00:00
{ text : "Segurança" , link : "/pt-BR/getting-started/security" } ,
{ text : "Atualizar" , link : "/pt-BR/getting-started/update" } ,
2022-10-15 11:22:08 +00:00
{ text : "Autenticação" , link : "/pt-BR/getting-started/auth" } ,
2022-04-15 09:47:48 +00:00
] ,
} ,
{
text : "Contributing" ,
children : [
{ text : "Guide" , link : "/pt-BR/contributing/guidelines" } ,
{ text : "Dev Setup" , link : "/pt-BR/contributing/setup-development" } ,
] ,
} ,
] ;
}
function getGuideSidebarNnNO() {
return [
{
text : "Introduksjon" ,
link : "/nn-NO/" ,
} ,
{
text : "Starter" ,
children : [
{ text : "Installer" , link : "/nn-NO/getting-started/install" } ,
2022-07-08 16:19:09 +00:00
{
text : "Docker" ,
link : "/nn-NO/getting-started/docker" ,
} ,
2022-04-15 09:47:48 +00:00
{ text : "Sikkerhet" , link : "/nn-NO/getting-started/security" } ,
{ text : "Oppdaterer" , link : "/nn-NO/getting-started/update" } ,
2022-10-15 11:22:08 +00:00
{ text : "Autentisering" , link : "/pt-BR/getting-started/auth" } ,
2022-04-15 09:47:48 +00:00
] ,
} ,
{
text : "Contributing" ,
children : [
{ text : "Guide" , link : "/nn-NO/contributing/guidelines" } ,
{ text : "Dev Setup" , link : "/nn-NO/contributing/setup-development" } ,
] ,
} ,
] ;
}