Skip to content

Commit a9181bc

Browse files
committed
update vitepress version, improve appearance and translations & add team page
1 parent facc23c commit a9181bc

File tree

10 files changed

+721
-318
lines changed

10 files changed

+721
-318
lines changed
Lines changed: 63 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
let guideSidebar = [
1+
import { defineConfig } from "vitepress";
2+
3+
const guideSidebar = [
24
{
35
text: "Equipo",
4-
collapsible: true,
6+
collapsed: false,
57
items: [
68
{ text: "Historia", link: "/equipo/historia" },
79
{ text: "Hardware", link: "/equipo/hardware" },
@@ -35,7 +37,7 @@ let guideSidebar = [
3537
},
3638
{
3739
text: "Servicios",
38-
collapsible: true,
40+
collapsed: false,
3941
items: [
4042
{
4143
text: "Nextcloud - Almacenamiento",
@@ -64,7 +66,7 @@ let guideSidebar = [
6466
},
6567
{
6668
text: "Relatos",
67-
collapsible: true,
69+
collapsed: false,
6870
items: [
6971
{ text: "Bloqueo de SSH", link: "/relatos/bloqueo-ssh" },
7072
{
@@ -83,49 +85,89 @@ let guideSidebar = [
8385
},
8486
];
8587

86-
/**
87-
* @type {import('vitepress').SiteConfig}
88-
*/
89-
export default {
90-
title: "WUPP",
88+
export default defineConfig({
9189
title: "WUPP",
9290
description: "Guía del servidor.",
91+
head: [["link", { rel: "icon", href: "/server/favicon.ico" }]],
9392
lang: "es-ES",
9493
base: "/server/",
94+
cleanUrls: true,
95+
appearance: true,
9596
lastUpdated: true,
96-
// markdown: {
97-
// theme: "solarized-dark",
98-
// },
9997
themeConfig: {
100-
lastUpdatedText: "Actualizado por última vez",
98+
logo: "/favicon.svg",
10199
nav: [
102100
{ text: "Inicio", link: "/", activeMatch: "" },
101+
{
102+
text: "Nosotros",
103+
link: "/nosotros",
104+
activeMatch: "^/nosotros$",
105+
},
103106
{
104107
text: "Guía del servidor",
105108
link: "/equipo/historia",
106-
activeMatch: "/(equipo|servicios)/",
109+
activeMatch: "^/(?!$|nosotros$)",
107110
},
108111
{
109112
text: "Archivos de configuración",
110113
link: "https://github.com/wupp-dev/server",
114+
target: "_blank",
111115
},
112116
],
117+
sidebar: {
118+
"/equipo/": guideSidebar,
119+
"/servicios/": guideSidebar,
120+
"/relatos/": guideSidebar,
121+
},
113122
socialLinks: [
114-
{ icon: "discord", link: "https://discord.gg/2pdbaf6Ugz" },
115123
{
116124
icon: "github",
117125
link: "https://github.com/wupp-dev/",
126+
ariaLabel: "GitHub WUPP-DEV",
118127
},
119128
],
120-
sidebar: {
121-
"/equipo/": guideSidebar,
122-
"/servicios/": guideSidebar,
123-
"/relatos/": guideSidebar,
124-
},
125129
footer: {
126130
message: "Distribuido bajo la licencia CC BY.",
127131
copyright:
128132
"Copyright © 2022-presente Lucas de Uña Ocampo e Iván Salido Cobo",
129133
},
134+
lastUpdated: { text: "Actualizado por última vez" },
135+
docFooter: {
136+
prev: "Página anterior",
137+
next: "Página siguiente",
138+
},
139+
darkModeSwitchLabel: "Apariencia",
140+
lightModeSwitchTitle: "Cambiar a modo claro",
141+
darkModeSwitchTitle: "Cambiar a modo oscuro",
142+
sidebarMenuLabel: "Menú",
143+
returnToTopLabel: "Volver arriba",
144+
skipToContentLabel: "Saltar al contenido",
145+
externalLinkIcon: true,
146+
search: {
147+
provider: "local",
148+
options: {
149+
translations: {
150+
button: {
151+
buttonText: "Buscar",
152+
buttonAriaLabel: "Buscar",
153+
},
154+
modal: {
155+
displayDetails: "Mostrar detalles",
156+
resetButtonTitle: "Restablecer",
157+
backButtonTitle: "Volver",
158+
noResultsText: "No se han encontrado resultados",
159+
footer: {
160+
selectText: "Seleccionar",
161+
selectKeyAriaLabel: "Tecla Enter",
162+
navigateText: "Navegar",
163+
navigateUpKeyAriaLabel: "Tecla flecha arriba",
164+
navigateDownKeyAriaLabel: "Tecla flecha abajo",
165+
closeText: "Cerrar",
166+
closeKeyAriaLabel: "Tecla Escape",
167+
},
168+
},
169+
},
170+
},
171+
},
130172
},
131-
};
173+
});
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import DefaultTheme from "vitepress/theme";
2-
import AppCard from "../../shared/servicios/AppCard.vue";
3-
4-
export default {
5-
...DefaultTheme,
6-
enhanceApp({ app }) {
7-
app.component("AppCard", AppCard);
8-
},
9-
};
1+
import type { Theme } from "vitepress";
2+
import DefaultTheme from "vitepress/theme";
3+
import AppCard from "../../shared/servicios/AppCard.vue";
4+
5+
export default {
6+
extends: DefaultTheme,
7+
enhanceApp({ app }) {
8+
app.component("AppCard", AppCard);
9+
},
10+
} satisfies Theme;

docs/index.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,33 @@ features:
2525
title: Instalación y configuración del resto de servicios
2626
details: Cosas más específicas como la página web, el servidor de Minecraft, el correo electrónico, Nextcloud...
2727
---
28+
29+
<script setup>
30+
import { VPTeamMembers } from 'vitepress/theme'
31+
32+
const members = [
33+
{
34+
avatar: 'https://www.github.com/ComicIvans.png',
35+
name: 'Iván Salido Cobo',
36+
title: 'Matemático',
37+
links: [
38+
{ icon: 'github', link: 'https://github.com/ComicIvans' },
39+
{ icon: 'firefox', link: 'https://ivan.wupp.dev' }
40+
]
41+
},
42+
{
43+
avatar: 'https://www.github.com/HipyCas.png',
44+
name: 'Lucas de Uña Ocampo',
45+
title: 'Ingeniero Informático',
46+
links: [
47+
{ icon: 'github', link: 'https://github.com/HipyCas' },
48+
]
49+
},
50+
]
51+
</script>
52+
53+
## Nosotros
54+
55+
Conoce a los creadores de WUPP.DEV.
56+
57+
<VPTeamMembers size="medium" :members />

docs/nosotros.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: page
3+
title: Nosotros
4+
---
5+
<script setup>
6+
import {
7+
VPTeamPage,
8+
VPTeamPageTitle,
9+
VPTeamMembers
10+
} from 'vitepress/theme'
11+
12+
const members = [
13+
{
14+
avatar: 'https://www.github.com/ComicIvans.png',
15+
name: 'Iván Salido Cobo',
16+
title: 'Matemático',
17+
links: [
18+
{ icon: 'github', link: 'https://github.com/ComicIvans' },
19+
{ icon: 'firefox', link: 'https://ivan.wupp.dev' }
20+
]
21+
},
22+
{
23+
avatar: 'https://www.github.com/HipyCas.png',
24+
name: 'Lucas de Uña Ocampo',
25+
title: 'Ingeniero Informático',
26+
links: [
27+
{ icon: 'github', link: 'https://github.com/HipyCas' },
28+
]
29+
},
30+
]
31+
</script>
32+
33+
<VPTeamPage>
34+
<VPTeamPageTitle>
35+
<template #title>
36+
Nosotros
37+
</template>
38+
<template #lead>
39+
Conoce a los creadores de WUPP.DEV.
40+
</template>
41+
</VPTeamPageTitle>
42+
<VPTeamMembers :members />
43+
</VPTeamPage>

docs/public/favicon.ico

954 Bytes
Binary file not shown.

docs/public/favicon.svg

Lines changed: 45 additions & 0 deletions
Loading

docs/shims-vue.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module "*.vue" {
2+
import { DefineComponent } from "vue";
3+
const component: DefineComponent<{}, {}, any>;
4+
export default component;
5+
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
],
2020
"author": "Iván y Lucas",
2121
"license": "CC0-1.0",
22+
"packageManager": "pnpm@10.27.0",
2223
"bugs": {
2324
"url": "https://github.com/wupp-dev/server/issues"
2425
},
2526
"homepage": "https://github.com/wupp-dev/server#readme",
2627
"dependencies": {
27-
"vitepress": "^1.6.4"
28+
"vitepress": "2.0.0-alpha.15"
29+
},
30+
"devDependencies": {
31+
"vue": "^3.5.26"
2832
}
2933
}

0 commit comments

Comments
 (0)