Configurato Vitepress e tradotto il sito in italiano
This commit is contained in:
parent
61d3aea12d
commit
db6a659dec
1 changed files with 80 additions and 38 deletions
|
|
@ -1,64 +1,106 @@
|
||||||
import { defineConfig } from 'vitepress'
|
import { defineConfig, UserConfig } from "vitepress";
|
||||||
import { withSidebar } from 'vitepress-sidebar'
|
import { withSidebar } from "vitepress-sidebar";
|
||||||
|
|
||||||
const vitePressOptions = {
|
|
||||||
srcDir: "site",
|
|
||||||
|
|
||||||
|
const vitePressOptions: UserConfig = {
|
||||||
title: "Retards Server",
|
title: "Retards Server",
|
||||||
description: "New Beginning",
|
description: "New Beginning",
|
||||||
|
srcDir: "site",
|
||||||
|
lastUpdated: true,
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
nav: [
|
nav: [
|
||||||
{ text: 'Home', link: '/' },
|
{ text: "Home", link: "/" },
|
||||||
{ text: 'Tutorials', link: '/tutorials/' },
|
{ text: "Tutorials", link: "/tutorials/" },
|
||||||
{ text: 'Wiki', link: '/wiki/' },
|
{ text: "Wiki", link: "/wiki/" },
|
||||||
{ text: 'News', link: '/news/' }
|
{ text: "News", link: "/news/" },
|
||||||
],
|
],
|
||||||
|
|
||||||
/*sidebar: [
|
search: {
|
||||||
{
|
provider: "local",
|
||||||
target: "/wiki",
|
options: {
|
||||||
text: 'Examples',
|
locales: {
|
||||||
items: [
|
root: {
|
||||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
translations: {
|
||||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
button: {
|
||||||
]
|
buttonText: "Cerca",
|
||||||
}
|
buttonAriaLabel: "Cerca",
|
||||||
],*/
|
},
|
||||||
|
modal: {
|
||||||
|
displayDetails: "Mostra dettagli",
|
||||||
|
resetButtonTitle: "Resetta",
|
||||||
|
backButtonTitle: "Indietro",
|
||||||
|
noResultsText: "Nessun risultato per",
|
||||||
|
footer: {
|
||||||
|
selectText: "per selezionare",
|
||||||
|
selectKeyAriaLabel: "invio",
|
||||||
|
navigateText: "per navigare",
|
||||||
|
navigateUpKeyAriaLabel: "su",
|
||||||
|
navigateDownKeyAriaLabel: "giù",
|
||||||
|
closeText: "per chiudere",
|
||||||
|
closeKeyAriaLabel: "esc",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
lastUpdated: { text: "Ultimo aggiornamento" },
|
||||||
|
|
||||||
|
outline: {
|
||||||
|
label: "In questa pagina",
|
||||||
|
},
|
||||||
|
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{ icon: 'forgejo', link: 'https://git.brixserver.uk/Malasaur/RetardsServer' }
|
{
|
||||||
]
|
icon: "forgejo",
|
||||||
}
|
link: "https://git.brixserver.uk/Malasaur/RetardsServer",
|
||||||
}
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
docFooter: {
|
||||||
|
prev: "Pagina precedente",
|
||||||
|
next: "Pagina successiva",
|
||||||
|
},
|
||||||
|
|
||||||
|
darkModeSwitchLabel: "Tema",
|
||||||
|
darkModeSwitchTitle: "Cambia in tema scuro",
|
||||||
|
lightModeSwitchTitle: "Cambia in tema chiaro",
|
||||||
|
returnToTopLabel: "Torna all'inizio",
|
||||||
|
skipToContent: "Vai al contenuto",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const vitePressSidebarOptions = [
|
const vitePressSidebarOptions = [
|
||||||
{
|
{
|
||||||
documentRootPath: 'site',
|
documentRootPath: "site",
|
||||||
scanStartPath: 'news',
|
scanStartPath: "news",
|
||||||
resolvePath: '/news/',
|
resolvePath: "/news/",
|
||||||
useTitleFromFileHeading: true,
|
useTitleFromFileHeading: true,
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
useFolderTitleFromIndexFile: true,
|
useFolderTitleFromIndexFile: true,
|
||||||
useFolderLinkFromIndexFile: true
|
useFolderLinkFromIndexFile: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
documentRootPath: 'site',
|
documentRootPath: "site",
|
||||||
scanStartPath: 'tutorials',
|
scanStartPath: "tutorials",
|
||||||
resolvePath: '/tutorials/',
|
resolvePath: "/tutorials/",
|
||||||
useTitleFromFileHeading: true,
|
useTitleFromFileHeading: true,
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
useFolderTitleFromIndexFile: true,
|
useFolderTitleFromIndexFile: true,
|
||||||
useFolderLinkFromIndexFile: true
|
useFolderLinkFromIndexFile: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
documentRootPath: 'site',
|
documentRootPath: "site",
|
||||||
scanStartPath: 'wiki',
|
scanStartPath: "wiki",
|
||||||
resolvePath: '/wiki/',
|
resolvePath: "/wiki/",
|
||||||
useTitleFromFileHeading: true,
|
useTitleFromFileHeading: true,
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
useFolderTitleFromIndexFile: true,
|
useFolderTitleFromIndexFile: true,
|
||||||
useFolderLinkFromIndexFile: true
|
useFolderLinkFromIndexFile: true,
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
|
|
||||||
export default defineConfig(withSidebar(vitePressOptions, vitePressSidebarOptions))
|
export default defineConfig(
|
||||||
|
withSidebar(vitePressOptions, vitePressSidebarOptions)
|
||||||
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue