| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- import { createRequire } from 'module'
- import { defineAdditionalConfig, type DefaultTheme } from 'vitepress'
- const require = createRequire(import.meta.url)
- const pkg = require('vitepress/package.json')
- export default defineAdditionalConfig({
- lang: 'es-CO',
- description: 'Generador de Sitios Estaticos desarrollado con Vite y Vue.',
- themeConfig: {
- nav: nav(),
- search: { options: searchOptions() },
- sidebar: {
- '/es/guide/': { base: '/es/guide/', items: sidebarGuide() },
- '/es/reference/': { base: '/es/reference/', items: sidebarReference() }
- },
- editLink: {
- pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/:path',
- text: 'Editar esta página en GitHub'
- },
- footer: {
- message: 'Liberado bajo la licencia MIT',
- copyright: `Derechos reservados © 2019-${new Date().getFullYear()} Evan You`
- },
- docFooter: {
- prev: 'Anterior',
- next: 'Siguiente'
- },
- outline: {
- label: 'En esta página'
- },
- lastUpdated: {
- text: 'Actualizado en'
- },
- notFound: {
- title: 'PÁGINA NO ENCONTRADA',
- quote:
- 'Pero si no cambias de dirección y sigues buscando, podrías terminar donde te diriges.',
- linkLabel: 'ir a inicio',
- linkText: 'Llévame a casa'
- },
- langMenuLabel: 'Cambiar Idioma',
- returnToTopLabel: 'Volver arriba',
- sidebarMenuLabel: 'Menu Lateral',
- darkModeSwitchLabel: 'Tema Oscuro',
- lightModeSwitchTitle: 'Cambiar a modo claro',
- darkModeSwitchTitle: 'Cambiar a modo oscuro',
- skipToContentLabel: 'Saltar al contenido'
- }
- })
- function nav(): DefaultTheme.NavItem[] {
- return [
- {
- text: 'Guia',
- link: '/es/guide/what-is-vitepress',
- activeMatch: '/es/guide/'
- },
- {
- text: 'Referencia',
- link: '/es/reference/site-config',
- activeMatch: '/es/reference/'
- },
- {
- text: pkg.version,
- items: [
- {
- text: 'Registro de cambios',
- link: 'https://github.com/vuejs/vitepress/blob/main/CHANGELOG.md'
- },
- {
- text: 'Contribuir',
- link: 'https://github.com/vuejs/vitepress/blob/main/.github/contributing.md'
- }
- ]
- }
- ]
- }
- function sidebarGuide(): DefaultTheme.SidebarItem[] {
- return [
- {
- text: 'Introducción',
- collapsed: false,
- items: [
- { text: 'Qué es VitePress?', link: 'what-is-vitepress' },
- { text: 'Iniciando', link: 'getting-started' },
- { text: 'Enrutamiento', link: 'routing' },
- { text: 'Despliegue', link: 'deploy' }
- ]
- },
- {
- text: 'Escribiendo',
- collapsed: false,
- items: [
- { text: 'Extensiones Markdown', link: 'markdown' },
- { text: 'Manejo de assets', link: 'asset-handling' },
- { text: 'Frontmatter', link: 'frontmatter' },
- { text: 'Usando Vue en Markdown', link: 'using-vue' },
- { text: 'Internacionalización', link: 'i18n' }
- ]
- },
- {
- text: 'Pesonalización',
- collapsed: false,
- items: [
- { text: 'Usando un tema personalizado', link: 'custom-theme' },
- {
- text: 'Extendiendo el tema por defecto',
- link: 'extending-default-theme'
- },
- {
- text: 'Carga de datos en tiempo de compilación',
- link: 'data-loading'
- },
- { text: 'Compatibilidad SSR', link: 'ssr-compat' },
- { text: 'Conectando a un CMS', link: 'cms' }
- ]
- },
- {
- text: 'Experimental',
- collapsed: false,
- items: [
- { text: 'Modo MPA', link: 'mpa-mode' },
- { text: 'Generación de Sitemap', link: 'sitemap-generation' }
- ]
- },
- {
- text: 'Configuración y Referencia del API',
- base: '/es/reference/',
- link: 'site-config'
- }
- ]
- }
- function sidebarReference(): DefaultTheme.SidebarItem[] {
- return [
- {
- text: 'Referencia',
- items: [
- { text: 'Configuración del sitio', link: 'site-config' },
- { text: 'Configuración Frontmatter', link: 'frontmatter-config' },
- { text: 'API de tiempo de ejecución', link: 'runtime-api' },
- { text: 'CLI', link: 'cli' },
- {
- text: 'Tema por defecto',
- base: '/es/reference/default-theme-',
- items: [
- { text: 'Visión general', link: 'config' },
- { text: 'Navegación', link: 'nav' },
- { text: 'Barra Lateral', link: 'sidebar' },
- { text: 'Página Inicial', link: 'home-page' },
- { text: 'Pie de página', link: 'footer' },
- { text: 'Layout', link: 'layout' },
- { text: 'Distintivo', link: 'badge' },
- { text: 'Página del equipo', link: 'team-page' },
- { text: 'Links Anterior / Siguiente', link: 'prev-next-links' },
- { text: 'Editar Link', link: 'edit-link' },
- { text: 'Sello temporal de actualización', link: 'last-updated' },
- { text: 'Busqueda', link: 'search' },
- { text: 'Carbon Ads', link: 'carbon-ads' }
- ]
- }
- ]
- }
- ]
- }
- function searchOptions(): Partial<DefaultTheme.AlgoliaSearchOptions> {
- return {
- placeholder: 'Buscar documentos',
- translations: {
- button: {
- buttonText: 'Buscar',
- buttonAriaLabel: 'Buscar'
- },
- modal: {
- searchBox: {
- resetButtonTitle: 'Limpiar búsqueda',
- resetButtonAriaLabel: 'Limpiar búsqueda',
- cancelButtonText: 'Cancelar',
- cancelButtonAriaLabel: 'Cancelar'
- },
- startScreen: {
- recentSearchesTitle: 'Historial de búsqueda',
- noRecentSearchesText: 'Ninguna búsqueda reciente',
- saveRecentSearchButtonTitle: 'Guardar en el historial de búsqueda',
- removeRecentSearchButtonTitle: 'Borrar del historial de búsqueda',
- favoriteSearchesTitle: 'Favoritos',
- removeFavoriteSearchButtonTitle: 'Borrar de favoritos'
- },
- errorScreen: {
- titleText: 'No fue posible obtener resultados',
- helpText: 'Verifique su conexión de red'
- },
- footer: {
- selectText: 'Seleccionar',
- navigateText: 'Navegar',
- closeText: 'Cerrar',
- searchByText: 'Busqueda por'
- },
- noResultsScreen: {
- noResultsText: 'No fue posible encontrar resultados',
- suggestedQueryText: 'Puede intentar una nueva búsqueda',
- reportMissingResultsText:
- 'Deberian haber resultados para esa consulta?',
- reportMissingResultsLinkText: 'Click para enviar feedback'
- }
- }
- }
- }
- }
|