2023-04-25 14:57:04 +02:00
import { defineUserConfig , SidebarConfigArray } from "vuepress" ;
import { defaultTheme } from "@vuepress/theme-default" ;
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics" ;
2023-04-25 17:03:38 +02:00
import { sitemapPlugin } from "vuepress-plugin-sitemap2" ;
2023-04-25 16:57:27 +02:00
import codeCopyPlugin from "@snippetors/vuepress-plugin-code-copy" ;
2023-04-25 14:57:04 +02:00
import { docsearchPlugin } from "@vuepress/plugin-docsearch" ;
2022-07-07 19:31:14 +02:00
const sidebar = ( lang , override = { } ) : SidebarConfigArray = >
2022-03-11 21:48:44 +01:00
[
"guide" , // README, which should always have a override
// Overrides for any page below is an inconsistency between the sidebar title and page title
"installing" ,
"config" ,
"advanced-config" ,
"faq" ,
"presets" ,
] . map ( page = > {
let path = "/" ;
if ( lang ) {
path += ` ${ lang } / ` ;
}
if ( page ) {
path += ` ${ page } / ` ;
}
// If no override is set for current page, let VuePress fallback to page title
2023-04-25 14:57:04 +02:00
return page in override ? { link : path , text : override [ page ] } : path ;
2022-03-11 21:48:44 +01:00
} ) ;
2023-04-25 14:57:04 +02:00
export default defineUserConfig ( {
2019-09-11 17:57:24 +02:00
locales : {
2022-01-20 09:32:09 +01:00
"/" : {
lang : "en-US" ,
title : "Starship" ,
description : "The minimal, blazing-fast, and infinitely customizable prompt for any shell!" ,
} ,
"/de-DE/" : {
lang : "de-DE" ,
title : "Starship" ,
description : "Minimale, super schnelle und unendlich anpassbare Prompt für jede Shell!" ,
} ,
"/es-ES/" : {
lang : "es-ES" ,
title : "Starship" ,
description :
"¡El prompt minimalista, ultrarápido e infinitamente personalizable para cualquier intérprete de comandos!" ,
} ,
"/fr-FR/" : {
lang : "fr-FR" ,
title : "Starship" ,
description : "L'invite minimaliste, ultra-rapide et personnalisable à l'infini pour n'importe quel shell !" ,
} ,
"/id-ID/" : {
lang : "id-ID" ,
title : "Starship" ,
description : "Prompt yang minimal, super cepat, dan dapat disesuaikan tanpa batas untuk shell apa pun!" ,
} ,
"/it-IT/" : {
lang : "it-IT" ,
title : "Starship" ,
description : "Il prompt minimalista, super veloce e infinitamente personalizzabile per qualsiasi shell!" ,
} ,
"/ja-JP/" : {
lang : "ja-JP" ,
title : "Starship" ,
description : "シェル用の最小限の、非常に高速で、無限にカスタマイズ可能なプロンプトです!" ,
} ,
"/pt-BR/" : {
lang : "pt-BR" ,
title : "Starship" ,
description :
"O prompt minimalista, extremamente rápido e infinitamente personalizável para qualquer shell!" ,
} ,
"/ru-RU/" : {
lang : "ru-RU" ,
title : "Starship" ,
description : "Минималистичная, быстрая и бесконечно настраиваемая командная строка для любой оболочки!" ,
} ,
"/vi-VN/" : {
lang : "vi-VN" ,
title : "Starship" ,
description : "Nhỏ gọn, cực nhanh, và khả năng tuỳ chỉnh vô hạn prompt cho bất kì shell nào!" ,
} ,
"/zh-CN/" : {
lang : "zh-CN" ,
title : "Starship" ,
description : "轻量级、反应迅速,可定制的高颜值终端!" ,
} ,
"/zh-TW/" : {
lang : "zh-TW" ,
title : "Starship" ,
description : "適合任何 shell 的最小、極速、無限客製化的提示字元!" ,
} ,
2021-08-26 22:44:58 +02:00
} ,
2022-01-20 09:32:09 +01:00
// prettier-ignore
head : [
[ "link" , { rel : "icon" , href : "/icon.png" } ] ,
[ "meta" , { property : "og:title" , content : "Starship: Cross-Shell Prompt" } ] ,
[ "meta" , {
property : "og:description" ,
content :
"Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and Powershell." ,
} ] ,
[ "meta" , { property : "og:type" , content : "website" } ] ,
[ "meta" , { property : "og:url" , content : "https://starship.rs/" } ] ,
[ "meta" , { property : "og:image" , content : "https://starship.rs/icon.png" } ] ,
[ "meta" , { name : "twitter:card" , content : "summary" } ] ,
[ "meta" , { name : "twitter:title" , content : "Starship: Cross-Shell Prompt" } ] ,
[ "meta" , {
name : "twitter:description" ,
content :
"Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and Powershell." ,
} ] ,
[ "meta" , { name : "twitter:image" , content : "https://starship.rs/icon.png" } ] ,
[ "meta" , { name : "twitter:alt" , content : "Starship: Cross-Shell Prompt" } ] ,
2019-11-05 14:29:46 +01:00
] ,
2023-04-25 14:57:04 +02:00
theme : defaultTheme ( {
2022-01-20 09:32:09 +01:00
logo : "/icon.png" ,
// the GitHub repo path
repo : "starship/starship" ,
// if your docs are not at the root of the repo:
docsDir : "docs" ,
locales : {
"/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Languages" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "English" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Edit this page on GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Configuration" , link : "/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "" , {
guide : "Guide" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/de-DE/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Sprachen" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Deutsch" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Bearbeite diese Seite auf GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Konfiguration" , link : "/de-DE/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "de-DE" , {
guide : "Anleitung" ,
installing : "Erweiterte Installation" ,
faq : "Häufig gestellte Fragen" ,
presets : "Konfigurations-Beispiele" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/es-ES/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Idiomas" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Español" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Edita esta página en GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Configuración" , link : "/es-ES/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "es-ES" , {
guide : "Guía" ,
installing : "Instalación avanzada" ,
faq : "Preguntas frecuentes" ,
presets : "Ajustes predeterminados" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/fr-FR/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Langues" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Français" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Éditez cette page sur GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Configuration" , link : "/fr-FR/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "fr-FR" , {
guide : "Guide" ,
installing : "Installation avancée" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/id-ID/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Languages" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Bahasa Indonesia" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Sunting halaman ini di Github" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Konfigurasi" , link : "/id-ID/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "id-ID" , {
guide : "Petunjuk" ,
installing : "Advanced Installation" ,
faq : "Pertanyaan Umum" ,
presets : "Prasetel" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/it-IT/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Languages" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Italiano" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Modifica questa pagina in Github" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Configuration" , link : "/it-IT/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "it-IT" , {
guide : "Guide" ,
installing : "Installazione Avanzata" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/ja-JP/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "言語" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "日本語" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "GitHub で編集する" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "設定" , link : "/ja-JP/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "ja-JP" , {
guide : "ガイド" ,
installing : "高度なインストール" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/pt-BR/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Languages" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Português do Brasil" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Edite esta página no Github" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Configuração" , link : "/pt-BR/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "pt-BR" , {
guide : "Guia" ,
installing : "Instalação avançada" ,
faq : "Perguntas frequentes" ,
presets : "Predefinições" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/ru-RU/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Языки" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Русский" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Редактировать эту страницу на GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Настройка" , link : "/ru-RU/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "ru-RU" , {
guide : "Руководство" ,
installing : "Advanced Installation" ,
config : "Настройка" ,
"advanced-config" : "Расширенная Настройка" ,
faq : "Часто Задаваемые Вопросы" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
"/vi-VN/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "Ngôn ngữ" ,
2022-01-20 09:32:09 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "Tiếng Việt" ,
2022-01-20 09:32:09 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "Chỉnh sửa trang này trên GitHub" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "Cấu hình" , link : "/vi-VN/config/" } ] ,
2022-01-20 09:32:09 +01:00
// Custom sidebar values
2022-03-11 21:48:44 +01:00
sidebar : sidebar ( "vi-VN" , {
guide : "Hướng dẫn" ,
installing : "Cài đặt nâng cao" ,
faq : "Các hỏi thường gặp" ,
} ) ,
} ,
"/zh-TW/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "語言" ,
2022-03-11 21:48:44 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "繁體中文" ,
2022-03-11 21:48:44 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "在 GitHub 上修改此頁面" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "設定" , link : "/zh-TW/config/" } ] ,
2022-03-11 21:48:44 +01:00
// Custom sidebar values
sidebar : sidebar ( "zh-TW" , {
guide : "指引" ,
installing : "進階安裝" ,
} ) ,
} ,
"/zh-CN/" : {
// text for the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageText : "语言" ,
2022-03-11 21:48:44 +01:00
// label for this locale in the language dropdown
2023-04-25 14:57:04 +02:00
selectLanguageName : "简体中文" ,
2022-03-11 21:48:44 +01:00
// Custom text for edit link. Defaults to "Edit this page"
editLinkText : "在 GitHub 上修改此页" ,
// Custom navbar values
2023-04-25 14:57:04 +02:00
navbar : [ { text : "配置" , link : "/zh-CN/config/" } ] ,
2022-03-11 21:48:44 +01:00
// Custom sidebar values
sidebar : sidebar ( "zh-CN" , {
guide : "指南" ,
installing : "高级安装" ,
presets : "社区配置分享" ,
} ) ,
2022-01-20 09:32:09 +01:00
} ,
} ,
2023-04-25 14:57:04 +02:00
} ) ,
2022-01-20 09:32:09 +01:00
plugins : [
2023-04-25 14:57:04 +02:00
googleAnalyticsPlugin ( {
id : "UA-71160903-4" ,
} ) ,
2023-04-25 17:03:38 +02:00
sitemapPlugin ( {
hostname : "https://starship.rs" ,
} ) ,
2023-04-25 16:57:27 +02:00
codeCopyPlugin ( ) ,
2023-04-25 14:57:04 +02:00
docsearchPlugin ( {
apiKey : "44118471f56286dcda7db941a043370d" ,
indexName : "starship" ,
appId : "M3XUO3SQOR" ,
} ) ,
2021-10-06 20:21:48 +02:00
] ,
2022-07-07 19:31:14 +02:00
} ) ;