@gitpagedocs/cli 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builders/version-config-builder.mjs +10 -4
- package/content/configuration-examples.mjs +22 -8
- package/content/content-blocks.mjs +142 -0
- package/content/docs-en.mjs +31 -15
- package/content/docs-es.mjs +148 -132
- package/content/docs-pt.mjs +169 -153
- package/content/html-doom.mjs +19 -60
- package/content/operations-en.mjs +2 -2
- package/content/operations-es.mjs +5 -5
- package/content/operations-pt.mjs +3 -3
- package/content/overviews-en.mjs +115 -0
- package/content/overviews-es.mjs +115 -0
- package/content/overviews-pt.mjs +115 -0
- package/content/practical-en.mjs +6 -4
- package/content/practical-es.mjs +7 -5
- package/content/practical-pt.mjs +8 -6
- package/contracts/doc-versions.mjs +2 -2
- package/data/composed-pages.mjs +25 -0
- package/data/default-site-config.mjs +130 -130
- package/data/i18n-langmenu.mjs +28 -28
- package/data/i18n-translations.mjs +7 -7
- package/data/menu-sections.mjs +11 -1
- package/data/path-mappings.mjs +10 -1
- package/data/route-metas.mjs +45 -9
- package/package.json +3 -3
- package/runtime/doc-path-resolver.mjs +17 -2
package/data/i18n-langmenu.mjs
CHANGED
|
@@ -7,8 +7,8 @@ export const defaultLangMenu = {
|
|
|
7
7
|
PdfUnavailable: "A prévia do PDF depende do navegador. Use as ações disponíveis para abrir ou baixar o documento.",
|
|
8
8
|
PdfDownloadError: "Não foi possível baixar o PDF. Tente abrir o documento em uma nova aba.",
|
|
9
9
|
PdfDownloading: "Baixando PDF...",
|
|
10
|
-
pt: "
|
|
11
|
-
en: "
|
|
10
|
+
pt: "Português",
|
|
11
|
+
en: "Inglês",
|
|
12
12
|
es: "Espanhol",
|
|
13
13
|
footerLabel: "Projeto",
|
|
14
14
|
menuOpen: "Menu",
|
|
@@ -20,11 +20,11 @@ export const defaultLangMenu = {
|
|
|
20
20
|
mdDownloadLabel: "Baixar .md",
|
|
21
21
|
hideMenu: "Fechar menu",
|
|
22
22
|
quickNavigation: "Ctrl+K",
|
|
23
|
-
searchOwnerLabel: "
|
|
24
|
-
searchRepoLabel: "
|
|
23
|
+
searchOwnerLabel: "Usuário (ex: Vidigal-code)",
|
|
24
|
+
searchRepoLabel: "Repositório (ex: git-page-link-create)",
|
|
25
25
|
searchButtonLabel: "Buscar",
|
|
26
26
|
typeToNavigate: "Digite para navegar...",
|
|
27
|
-
noNavigationResults: "Nenhum resultado de
|
|
27
|
+
noNavigationResults: "Nenhum resultado de navegação.",
|
|
28
28
|
focusMode: "Modo foco",
|
|
29
29
|
focusFirstDocument: "Primeiro documento",
|
|
30
30
|
focusLastDocument: "Último documento",
|
|
@@ -51,27 +51,27 @@ export const defaultLangMenu = {
|
|
|
51
51
|
narrationSpeaking: "Lendo documento",
|
|
52
52
|
narrationPaused: "Leitura pausada",
|
|
53
53
|
narrationSettingsHint: "As vozes são fornecidas pelo navegador. Pare a leitura para alterar as preferências.",
|
|
54
|
-
versionLinksLabel: "Links do
|
|
54
|
+
versionLinksLabel: "Links do repositório",
|
|
55
55
|
titleHeaderMenuMd: "Markdown",
|
|
56
|
-
titleHeaderMenuSourceViewer: "
|
|
56
|
+
titleHeaderMenuSourceViewer: "Código fonte",
|
|
57
57
|
titleHeaderMenuVideo: "Vídeo",
|
|
58
58
|
titleHeaderMenuAudio: "Áudio",
|
|
59
59
|
titleHeaderMenuHtml: "Páginas",
|
|
60
60
|
sourceViewerBranchLabel: "Branch",
|
|
61
61
|
sourceViewerFilterLabel: "Filtrar arquivos",
|
|
62
62
|
sourceViewerClearLabel: "Limpar",
|
|
63
|
-
sourceViewerLoadingTree: "Carregando
|
|
63
|
+
sourceViewerLoadingTree: "Carregando árvore do repositório...",
|
|
64
64
|
sourceViewerLoadingFile: "Carregando arquivo...",
|
|
65
|
-
sourceViewerNotFound: "
|
|
66
|
-
sourceViewerFileError: "
|
|
65
|
+
sourceViewerNotFound: "Repositório, branch ou árvore de código não encontrado.",
|
|
66
|
+
sourceViewerFileError: "Não foi possível carregar o arquivo.",
|
|
67
67
|
sourceViewerEmpty: "Nenhuma entrada encontrada.",
|
|
68
68
|
sourceViewerSelectFile: "Selecione um arquivo",
|
|
69
69
|
sourceViewerPreview: "Preview",
|
|
70
|
-
sourceViewerCode: "
|
|
71
|
-
sourceViewerEntryHint: "Explore os arquivos de um
|
|
72
|
-
sourceViewerEntryAction: "Abrir o visualizador de
|
|
70
|
+
sourceViewerCode: "Código",
|
|
71
|
+
sourceViewerEntryHint: "Explore os arquivos de um repositório sem abrir a documentação.",
|
|
72
|
+
sourceViewerEntryAction: "Abrir o visualizador de código",
|
|
73
73
|
sourceViewerBackLabel: "Voltar",
|
|
74
|
-
lastUpdateVersionLabel: "Ultima
|
|
74
|
+
lastUpdateVersionLabel: "Ultima versão de atualização",
|
|
75
75
|
darkMode: "Modo escuro",
|
|
76
76
|
lightMode: "Modo claro",
|
|
77
77
|
blockMenuOnNavActive: "Bloquear menu na navegação",
|
|
@@ -345,24 +345,24 @@ export const defaultLangMenu = {
|
|
|
345
345
|
PdfUnavailable: "La vista previa del PDF depende del navegador. Usa las acciones disponibles para abrir o descargar el documento.",
|
|
346
346
|
PdfDownloadError: "No se pudo descargar el PDF. Intenta abrir el documento en una pestaña nueva.",
|
|
347
347
|
PdfDownloading: "Descargando PDF...",
|
|
348
|
-
pt: "
|
|
349
|
-
en: "
|
|
350
|
-
es: "
|
|
348
|
+
pt: "Portugués",
|
|
349
|
+
en: "Inglés",
|
|
350
|
+
es: "Español",
|
|
351
351
|
footerLabel: "Proyecto",
|
|
352
|
-
menuOpen: "
|
|
352
|
+
menuOpen: "Menú",
|
|
353
353
|
menuClose: "Cerrar",
|
|
354
|
-
showMenu: "Abrir
|
|
354
|
+
showMenu: "Abrir menú",
|
|
355
355
|
mdCopyLabel: "Copiar Markdown",
|
|
356
356
|
mdCopiedLabel: "¡Copiado!",
|
|
357
357
|
mdCopyErrorLabel: "No se pudo copiar",
|
|
358
358
|
mdDownloadLabel: "Descargar .md",
|
|
359
|
-
hideMenu: "Cerrar
|
|
359
|
+
hideMenu: "Cerrar menú",
|
|
360
360
|
quickNavigation: "Ctrl+K",
|
|
361
361
|
searchOwnerLabel: "Usuario (ej: Vidigal-code)",
|
|
362
362
|
searchRepoLabel: "Repositorio (ej: git-page-link-create)",
|
|
363
363
|
searchButtonLabel: "Buscar",
|
|
364
364
|
typeToNavigate: "Escribe para navegar...",
|
|
365
|
-
noNavigationResults: "Sin resultados de
|
|
365
|
+
noNavigationResults: "Sin resultados de navegación.",
|
|
366
366
|
focusMode: "Modo foco",
|
|
367
367
|
focusFirstDocument: "Primer documento",
|
|
368
368
|
focusLastDocument: "Último documento",
|
|
@@ -391,25 +391,25 @@ export const defaultLangMenu = {
|
|
|
391
391
|
narrationSettingsHint: "El navegador proporciona las voces. Detén la lectura para cambiar las preferencias.",
|
|
392
392
|
versionLinksLabel: "Enlaces del repositorio",
|
|
393
393
|
titleHeaderMenuMd: "Markdown",
|
|
394
|
-
titleHeaderMenuSourceViewer: "
|
|
394
|
+
titleHeaderMenuSourceViewer: "Código fuente",
|
|
395
395
|
titleHeaderMenuVideo: "Vídeo",
|
|
396
396
|
titleHeaderMenuAudio: "Áudio",
|
|
397
397
|
titleHeaderMenuHtml: "Páginas",
|
|
398
398
|
sourceViewerBranchLabel: "Branch",
|
|
399
399
|
sourceViewerFilterLabel: "Filtrar archivos",
|
|
400
400
|
sourceViewerClearLabel: "Limpiar",
|
|
401
|
-
sourceViewerLoadingTree: "Cargando
|
|
401
|
+
sourceViewerLoadingTree: "Cargando árbol del repositorio...",
|
|
402
402
|
sourceViewerLoadingFile: "Cargando archivo...",
|
|
403
|
-
sourceViewerNotFound: "Repositorio, branch o
|
|
403
|
+
sourceViewerNotFound: "Repositorio, branch o árbol de código no encontrado.",
|
|
404
404
|
sourceViewerFileError: "No se pudo cargar el archivo.",
|
|
405
405
|
sourceViewerEmpty: "No se encontraron entradas.",
|
|
406
406
|
sourceViewerSelectFile: "Selecciona un archivo",
|
|
407
407
|
sourceViewerPreview: "Preview",
|
|
408
|
-
sourceViewerCode: "
|
|
409
|
-
sourceViewerEntryHint: "Explora los archivos de un repositorio sin abrir la
|
|
410
|
-
sourceViewerEntryAction: "Abrir el visor de
|
|
408
|
+
sourceViewerCode: "Código",
|
|
409
|
+
sourceViewerEntryHint: "Explora los archivos de un repositorio sin abrir la documentación.",
|
|
410
|
+
sourceViewerEntryAction: "Abrir el visor de código",
|
|
411
411
|
sourceViewerBackLabel: "Volver",
|
|
412
|
-
lastUpdateVersionLabel: "Ultima
|
|
412
|
+
lastUpdateVersionLabel: "Ultima versión de actualización",
|
|
413
413
|
darkMode: "Modo oscuro",
|
|
414
414
|
lightMode: "Modo claro",
|
|
415
415
|
blockMenuOnNavActive: "Bloquear menú en la navegación",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export const defaultTranslations = {
|
|
2
2
|
notFound: {
|
|
3
|
-
title: { pt: "
|
|
3
|
+
title: { pt: "Página não encontrada", en: "Page not found", es: "Página no encontrada" },
|
|
4
4
|
description: {
|
|
5
|
-
pt: "A
|
|
5
|
+
pt: "A página de documentação solicitada não existe neste contexto de repositório.",
|
|
6
6
|
en: "The requested documentation page does not exist in this repository context.",
|
|
7
|
-
es: "La
|
|
7
|
+
es: "La página de documentación solicitada no existe en este contexto de repositorio.",
|
|
8
8
|
},
|
|
9
|
-
returnHome: { pt: "Voltar para
|
|
9
|
+
returnHome: { pt: "Voltar para início", en: "Return Home", es: "Volver al inicio" },
|
|
10
10
|
},
|
|
11
11
|
navigation: {
|
|
12
12
|
previous: { pt: "Voltar", en: "Previous", es: "Volver" },
|
|
13
|
-
next: { pt: "
|
|
14
|
-
menuOpen: { pt: "Menu", en: "Menu", es: "
|
|
13
|
+
next: { pt: "Próximo", en: "Next", es: "Siguiente" },
|
|
14
|
+
menuOpen: { pt: "Menu", en: "Menu", es: "Menú" },
|
|
15
15
|
menuClose: { pt: "Fechar", en: "Close", es: "Cerrar" },
|
|
16
16
|
browsePrev: { pt: "Anterior", en: "Previous", es: "Anterior" },
|
|
17
|
-
browseNext: { pt: "
|
|
17
|
+
browseNext: { pt: "Próximo", en: "Next", es: "Siguiente" },
|
|
18
18
|
},
|
|
19
19
|
footer: { footerLabel: { pt: "Projeto", en: "Project", es: "Proyecto" } },
|
|
20
20
|
};
|
package/data/menu-sections.mjs
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
+
import { COMPOSED_PAGE_MENU } from "./composed-pages.mjs";
|
|
2
|
+
|
|
1
3
|
export const MARKDOWN_MENU_SECTIONS = [
|
|
2
4
|
1,
|
|
3
5
|
2,
|
|
4
6
|
{
|
|
5
7
|
id: 1000,
|
|
8
|
+
routeId: 31,
|
|
6
9
|
titles: { en: "Guides", pt: "Guias", es: "Guías" },
|
|
7
10
|
submenus: [
|
|
8
11
|
{
|
|
9
12
|
id: 1001,
|
|
13
|
+
routeId: 32,
|
|
10
14
|
titles: { en: "Configure your site", pt: "Configure seu site", es: "Configura tu sitio" },
|
|
11
15
|
submenus: [13, 25, 16, 20],
|
|
12
16
|
},
|
|
13
17
|
{
|
|
14
18
|
id: 1002,
|
|
19
|
+
routeId: 33,
|
|
15
20
|
titles: { en: "Read and explore", pt: "Leia e explore", es: "Lee y explora" },
|
|
16
|
-
submenus: [22, 21, 24, 30],
|
|
21
|
+
submenus: [22, 21, 24, 30, 40, COMPOSED_PAGE_MENU],
|
|
17
22
|
},
|
|
18
23
|
{
|
|
19
24
|
id: 1003,
|
|
25
|
+
routeId: 34,
|
|
20
26
|
titles: { en: "Automate and integrate", pt: "Automatize e integre", es: "Automatiza e integra" },
|
|
21
27
|
submenus: [18, 19, 6],
|
|
22
28
|
},
|
|
@@ -24,15 +30,18 @@ export const MARKDOWN_MENU_SECTIONS = [
|
|
|
24
30
|
},
|
|
25
31
|
{
|
|
26
32
|
id: 1100,
|
|
33
|
+
routeId: 35,
|
|
27
34
|
titles: { en: "Operations and development", pt: "Operação e desenvolvimento", es: "Operación y desarrollo" },
|
|
28
35
|
submenus: [
|
|
29
36
|
{
|
|
30
37
|
id: 1101,
|
|
38
|
+
routeId: 36,
|
|
31
39
|
titles: { en: "Ship and maintain", pt: "Publique e mantenha", es: "Publica y mantén" },
|
|
32
40
|
submenus: [14, 26, 27, 17],
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
43
|
id: 1102,
|
|
44
|
+
routeId: 37,
|
|
36
45
|
titles: { en: "Develop the project", pt: "Desenvolva o projeto", es: "Desarrolla el proyecto" },
|
|
37
46
|
submenus: [15, 28, 3],
|
|
38
47
|
},
|
|
@@ -40,6 +49,7 @@ export const MARKDOWN_MENU_SECTIONS = [
|
|
|
40
49
|
},
|
|
41
50
|
{
|
|
42
51
|
id: 1200,
|
|
52
|
+
routeId: 38,
|
|
43
53
|
titles: { en: "Git and GitHub", pt: "Git e GitHub", es: "Git y GitHub" },
|
|
44
54
|
submenus: [5, 4],
|
|
45
55
|
},
|
package/data/path-mappings.mjs
CHANGED
|
@@ -4,6 +4,7 @@ export const PDF_GUIDE_FILENAME = "gitpagedocs-project-guide.pdf";
|
|
|
4
4
|
export const HTML_DOOM_FILENAME = "doom.html";
|
|
5
5
|
|
|
6
6
|
export const ROUTE_PATHS = {
|
|
7
|
+
40: { en: "content-blocks.md", pt: "content-blocks.md", es: "content-blocks.md" },
|
|
7
8
|
1: { pt: "getting-started.md", en: "getting-started.md", es: "getting-started.md" },
|
|
8
9
|
2: { pt: "project-overview.md", en: "project-overview.md", es: "project-overview.md" },
|
|
9
10
|
3: { pt: "functionalities.md", en: "functionalities.md", es: "functionalities.md" },
|
|
@@ -26,6 +27,14 @@ export const ROUTE_PATHS = {
|
|
|
26
27
|
27: { pt: "troubleshooting.md", en: "troubleshooting.md", es: "troubleshooting.md" },
|
|
27
28
|
28: { pt: "contributing.md", en: "contributing.md", es: "contributing.md" },
|
|
28
29
|
30: { pt: "html-containers.md", en: "html-containers.md", es: "html-containers.md" },
|
|
30
|
+
31: { pt: "guides.md", en: "guides.md", es: "guides.md" },
|
|
31
|
+
32: { pt: "configure-your-site.md", en: "configure-your-site.md", es: "configure-your-site.md" },
|
|
32
|
+
33: { pt: "read-and-explore.md", en: "read-and-explore.md", es: "read-and-explore.md" },
|
|
33
|
+
34: { pt: "automate-and-integrate.md", en: "automate-and-integrate.md", es: "automate-and-integrate.md" },
|
|
34
|
+
35: { pt: "operations-and-development.md", en: "operations-and-development.md", es: "operations-and-development.md" },
|
|
35
|
+
36: { pt: "ship-and-maintain.md", en: "ship-and-maintain.md", es: "ship-and-maintain.md" },
|
|
36
|
+
37: { pt: "develop-the-project.md", en: "develop-the-project.md", es: "develop-the-project.md" },
|
|
37
|
+
38: { pt: "git-and-github.md", en: "git-and-github.md", es: "git-and-github.md" },
|
|
29
38
|
};
|
|
30
39
|
|
|
31
40
|
export const VIDEO_IDS = ["bdIJkGr2NV0", "c67GaAkf1BE", "N3my6W_Rdwg", "r8jQ9hVA2qs"];
|
|
@@ -39,7 +48,7 @@ export const PAGE2_AUDIO = {
|
|
|
39
48
|
{
|
|
40
49
|
url: "https://www.youtube.com/watch?v=0w80F8FffQ4",
|
|
41
50
|
type: "youtube",
|
|
42
|
-
title: { pt: "
|
|
51
|
+
title: { pt: "Música página 2", en: "Page 2 music", es: "Música página 2" },
|
|
43
52
|
},
|
|
44
53
|
],
|
|
45
54
|
};
|
package/data/route-metas.mjs
CHANGED
|
@@ -39,6 +39,10 @@ export const ROUTE_META_ID6 = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
export const REFERENCE_ROUTE_METAS = {
|
|
42
|
+
40: {
|
|
43
|
+
titles: { en: "Ordered content blocks", pt: "Blocos de conteúdo ordenados", es: "Bloques de contenido ordenados" },
|
|
44
|
+
descriptions: { en: "Combine and repeat content in one page", pt: "Combine e repita conteúdos na mesma página", es: "Combina y repite contenidos en una página" },
|
|
45
|
+
},
|
|
42
46
|
13: {
|
|
43
47
|
titles: { pt: "Configuração", en: "Configuration", es: "Configuración" },
|
|
44
48
|
descriptions: { pt: "Idiomas, ícones, navegação, foco e acessibilidade", en: "Languages, icons, navigation, focus and accessibility", es: "Idiomas, iconos, navegación, foco y accesibilidad" },
|
|
@@ -103,35 +107,67 @@ export const REFERENCE_ROUTE_METAS = {
|
|
|
103
107
|
titles: { pt: "Containers HTML", en: "HTML containers", es: "Contenedores HTML" },
|
|
104
108
|
descriptions: { pt: "Páginas HTML, URLs externas e o exemplo interativo DOOM", en: "HTML pages, external URLs and the interactive DOOM example", es: "Páginas HTML, URLs externas y el ejemplo interactivo DOOM" },
|
|
105
109
|
},
|
|
110
|
+
31: {
|
|
111
|
+
titles: { pt: "Guias", en: "Guides", es: "Guías" },
|
|
112
|
+
descriptions: { pt: "Escolha um caminho para configurar, ler ou integrar", en: "Choose a path to configure, read or integrate", es: "Elige un recorrido para configurar, leer o integrar" },
|
|
113
|
+
},
|
|
114
|
+
32: {
|
|
115
|
+
titles: { pt: "Configure seu site", en: "Configure your site", es: "Configura tu sitio" },
|
|
116
|
+
descriptions: { pt: "Organize conteúdo, navegação e apresentação", en: "Organize content, navigation and presentation", es: "Organiza contenido, navegación y presentación" },
|
|
117
|
+
},
|
|
118
|
+
33: {
|
|
119
|
+
titles: { pt: "Leia e explore", en: "Read and explore", es: "Lee y explora" },
|
|
120
|
+
descriptions: { pt: "Escolha como ler documentos e exemplos interativos", en: "Choose how to read documents and interactive examples", es: "Elige cómo leer documentos y ejemplos interactivos" },
|
|
121
|
+
},
|
|
122
|
+
34: {
|
|
123
|
+
titles: { pt: "Automatize e integre", en: "Automate and integrate", es: "Automatiza e integra" },
|
|
124
|
+
descriptions: { pt: "Use CLI, MCP e políticas de acesso", en: "Use the CLI, MCP and access policies", es: "Usa la CLI, MCP y políticas de acceso" },
|
|
125
|
+
},
|
|
126
|
+
35: {
|
|
127
|
+
titles: { pt: "Operação e desenvolvimento", en: "Operations and development", es: "Operación y desarrollo" },
|
|
128
|
+
descriptions: { pt: "Publique, mantenha e desenvolva a documentação", en: "Publish, maintain and develop the documentation", es: "Pública, mantén y desarrolla la documentación" },
|
|
129
|
+
},
|
|
130
|
+
36: {
|
|
131
|
+
titles: { pt: "Publique e mantenha", en: "Ship and maintain", es: "Pública y mantén" },
|
|
132
|
+
descriptions: { pt: "Prepare a publicação e preserve compatibilidade", en: "Prepare releases and preserve compatibility", es: "Prepara publicaciones y conserva compatibilidad" },
|
|
133
|
+
},
|
|
134
|
+
37: {
|
|
135
|
+
titles: { pt: "Desenvolva o projeto", en: "Develop the project", es: "Desarrolla el proyecto" },
|
|
136
|
+
descriptions: { pt: "Localize fontes, contratos e verificações", en: "Locate sources, contracts and checks", es: "Localiza fuentes, contratos y comprobaciones" },
|
|
137
|
+
},
|
|
138
|
+
38: {
|
|
139
|
+
titles: { pt: "Git e GitHub", en: "Git and GitHub", es: "Git y GitHub" },
|
|
140
|
+
descriptions: { pt: "Versione mudanças e organize o trabalho", en: "Version changes and organize the work", es: "Versiona cambios y organiza el trabajo" },
|
|
141
|
+
},
|
|
106
142
|
};
|
|
107
143
|
|
|
108
144
|
export const HTML_DOOM_META = {
|
|
109
145
|
id: 29,
|
|
110
146
|
titles: { pt: "DOOM: exemplo HTML", en: "DOOM: HTML example", es: "DOOM: ejemplo HTML" },
|
|
111
147
|
descriptions: {
|
|
112
|
-
pt: "
|
|
113
|
-
en: "
|
|
114
|
-
es: "
|
|
148
|
+
pt: "Jogue DOOM em um container HTML usando os controles do próprio player.",
|
|
149
|
+
en: "Play DOOM in an HTML container using the player’s native controls.",
|
|
150
|
+
es: "Juega a DOOM en un contenedor HTML con los controles del reproductor.",
|
|
115
151
|
},
|
|
116
152
|
};
|
|
117
153
|
|
|
118
154
|
export const SOURCE_VIEWER_META = {
|
|
119
155
|
id: 7,
|
|
120
|
-
titles: { pt: "
|
|
156
|
+
titles: { pt: "Código fonte", en: "Source code", es: "Código fuente" },
|
|
121
157
|
descriptions: {
|
|
122
|
-
pt: "Explore a
|
|
158
|
+
pt: "Explore a árvore do repositório, navegue por pastas e visualize arquivos diretamente na documentação.",
|
|
123
159
|
en: "Explore the repository tree, browse folders, and preview files directly inside the documentation.",
|
|
124
|
-
es: "Explora el
|
|
160
|
+
es: "Explora el árbol del repositorio, navega por carpetas y previsualiza archivos directamente en la documentación.",
|
|
125
161
|
},
|
|
126
162
|
};
|
|
127
163
|
|
|
128
164
|
export const AUDIO_META_ID12 = {
|
|
129
165
|
id: 12,
|
|
130
|
-
title: { pt: "Trilha de
|
|
166
|
+
title: { pt: "Trilha de áudio", en: "Audio track", es: "Pista de audio" },
|
|
131
167
|
description: {
|
|
132
|
-
pt: "Ouça uma faixa de exemplo diretamente na
|
|
168
|
+
pt: "Ouça uma faixa de exemplo diretamente na documentação.",
|
|
133
169
|
en: "Listen to a sample track directly inside the documentation.",
|
|
134
|
-
es: "Escucha una pista de ejemplo directamente en la
|
|
170
|
+
es: "Escucha una pista de ejemplo directamente en la documentación.",
|
|
135
171
|
},
|
|
136
172
|
};
|
|
137
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitpagedocs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "CLI that scaffolds and maintains gitpagedocs documentation, generates docs with AI, configures GitHub Pages, and runs the MCP server.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"gitpagedocs": "index.mjs"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^1.5.1",
|
|
32
|
-
"@gitpagedocs/mcp": "^0.0.
|
|
33
|
-
"@gitpagedocs/tools": "^0.0.
|
|
32
|
+
"@gitpagedocs/mcp": "^0.0.11",
|
|
33
|
+
"@gitpagedocs/tools": "^0.0.11",
|
|
34
34
|
"tsx": "^4.21.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/** Map doc paths to content keys and apply version badges */
|
|
2
2
|
|
|
3
|
+
import { PACKAGE_VERSION } from "../contracts/doc-versions.mjs";
|
|
4
|
+
|
|
3
5
|
const DOC_FILE_KEYS = new Map([
|
|
6
|
+
["content-blocks.md", "contentBlocks"],
|
|
4
7
|
["index.md", "index"],
|
|
5
8
|
["getting-started.md", "gettingStarted"],
|
|
6
9
|
["configuration.md", "configuration"],
|
|
@@ -24,6 +27,14 @@ const DOC_FILE_KEYS = new Map([
|
|
|
24
27
|
["troubleshooting.md", "troubleshooting"],
|
|
25
28
|
["contributing.md", "contributing"],
|
|
26
29
|
["html-containers.md", "htmlContainers"],
|
|
30
|
+
["guides.md", "guides"],
|
|
31
|
+
["configure-your-site.md", "configureYourSite"],
|
|
32
|
+
["read-and-explore.md", "readAndExplore"],
|
|
33
|
+
["automate-and-integrate.md", "automateAndIntegrate"],
|
|
34
|
+
["operations-and-development.md", "operationsAndDevelopment"],
|
|
35
|
+
["ship-and-maintain.md", "shipAndMaintain"],
|
|
36
|
+
["develop-the-project.md", "developTheProject"],
|
|
37
|
+
["git-and-github.md", "gitAndGitHub"],
|
|
27
38
|
]);
|
|
28
39
|
|
|
29
40
|
export function parseDocFileToKey(fileName) {
|
|
@@ -43,13 +54,17 @@ export function extractLanguageFromPath(docPath) {
|
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
export function withVersionBadge(content, versionId, language) {
|
|
46
|
-
const normalized = typeof content === "string"
|
|
57
|
+
const normalized = typeof content === "string"
|
|
58
|
+
? content.replaceAll(`/versions/${PACKAGE_VERSION}/`, `/versions/${versionId}/`)
|
|
59
|
+
: "";
|
|
47
60
|
if (!normalized.trim()) {
|
|
48
61
|
return normalized;
|
|
49
62
|
}
|
|
50
63
|
|
|
51
64
|
const alreadyTagged =
|
|
52
65
|
normalized.includes(`Version: ${versionId}`) ||
|
|
66
|
+
normalized.includes(`Versão: ${versionId}`) ||
|
|
67
|
+
normalized.includes(`Versión: ${versionId}`) ||
|
|
53
68
|
normalized.includes(`Versao: ${versionId}`) ||
|
|
54
69
|
normalized.includes(`Version (ES): ${versionId}`);
|
|
55
70
|
if (alreadyTagged) {
|
|
@@ -62,7 +77,7 @@ export function withVersionBadge(content, versionId, language) {
|
|
|
62
77
|
}
|
|
63
78
|
|
|
64
79
|
/** Badge wording per language; every other language reads the English form. */
|
|
65
|
-
const VERSION_LABEL_PREFIXES = { pt: "
|
|
80
|
+
const VERSION_LABEL_PREFIXES = { pt: "Versão", es: "Versión" };
|
|
66
81
|
|
|
67
82
|
function versionLabelPrefix(language) {
|
|
68
83
|
return VERSION_LABEL_PREFIXES[language] ?? "Version";
|