@gitpagedocs/cli 0.0.10 → 0.0.12
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/README.md +27 -7
- package/ai/application/run-ai-cli-command.ts +2 -2
- package/builders/theme-template.mjs +3 -0
- package/builders/version-config-builder.mjs +10 -4
- package/content/configuration-examples.mjs +23 -8
- package/content/content-blocks.mjs +142 -0
- package/content/docs-en.mjs +44 -19
- package/content/docs-es.mjs +162 -137
- package/content/docs-pt.mjs +186 -161
- 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 +7 -5
- package/content/practical-es.mjs +8 -6
- package/content/practical-pt.mjs +9 -7
- package/content/theme-backgrounds.mjs +241 -0
- package/contracts/doc-versions.mjs +2 -2
- package/data/animated-layouts.mjs +7583 -0
- package/data/composed-pages.mjs +25 -0
- package/data/default-site-config.mjs +150 -130
- package/data/i18n-langmenu.mjs +34 -28
- package/data/i18n-translations.mjs +7 -7
- package/data/layouts.mjs +4 -1
- package/data/menu-sections.mjs +11 -1
- package/data/path-mappings.mjs +10 -1
- package/data/route-metas.mjs +45 -9
- package/data/theme-colors.mjs +4 -1
- package/package.json +3 -3
- package/runtime/doc-path-resolver.mjs +17 -2
package/data/i18n-langmenu.mjs
CHANGED
|
@@ -7,12 +7,14 @@ 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",
|
|
15
15
|
menuClose: "Fechar",
|
|
16
|
+
backgroundAnimationPause: "Pausar animação de fundo",
|
|
17
|
+
backgroundAnimationResume: "Continuar animação de fundo",
|
|
16
18
|
showMenu: "Abrir menu",
|
|
17
19
|
mdCopyLabel: "Copiar Markdown",
|
|
18
20
|
mdCopiedLabel: "Copiado!",
|
|
@@ -20,11 +22,11 @@ export const defaultLangMenu = {
|
|
|
20
22
|
mdDownloadLabel: "Baixar .md",
|
|
21
23
|
hideMenu: "Fechar menu",
|
|
22
24
|
quickNavigation: "Ctrl+K",
|
|
23
|
-
searchOwnerLabel: "
|
|
24
|
-
searchRepoLabel: "
|
|
25
|
+
searchOwnerLabel: "Usuário (ex: Vidigal-code)",
|
|
26
|
+
searchRepoLabel: "Repositório (ex: git-page-link-create)",
|
|
25
27
|
searchButtonLabel: "Buscar",
|
|
26
28
|
typeToNavigate: "Digite para navegar...",
|
|
27
|
-
noNavigationResults: "Nenhum resultado de
|
|
29
|
+
noNavigationResults: "Nenhum resultado de navegação.",
|
|
28
30
|
focusMode: "Modo foco",
|
|
29
31
|
focusFirstDocument: "Primeiro documento",
|
|
30
32
|
focusLastDocument: "Último documento",
|
|
@@ -51,27 +53,27 @@ export const defaultLangMenu = {
|
|
|
51
53
|
narrationSpeaking: "Lendo documento",
|
|
52
54
|
narrationPaused: "Leitura pausada",
|
|
53
55
|
narrationSettingsHint: "As vozes são fornecidas pelo navegador. Pare a leitura para alterar as preferências.",
|
|
54
|
-
versionLinksLabel: "Links do
|
|
56
|
+
versionLinksLabel: "Links do repositório",
|
|
55
57
|
titleHeaderMenuMd: "Markdown",
|
|
56
|
-
titleHeaderMenuSourceViewer: "
|
|
58
|
+
titleHeaderMenuSourceViewer: "Código fonte",
|
|
57
59
|
titleHeaderMenuVideo: "Vídeo",
|
|
58
60
|
titleHeaderMenuAudio: "Áudio",
|
|
59
61
|
titleHeaderMenuHtml: "Páginas",
|
|
60
62
|
sourceViewerBranchLabel: "Branch",
|
|
61
63
|
sourceViewerFilterLabel: "Filtrar arquivos",
|
|
62
64
|
sourceViewerClearLabel: "Limpar",
|
|
63
|
-
sourceViewerLoadingTree: "Carregando
|
|
65
|
+
sourceViewerLoadingTree: "Carregando árvore do repositório...",
|
|
64
66
|
sourceViewerLoadingFile: "Carregando arquivo...",
|
|
65
|
-
sourceViewerNotFound: "
|
|
66
|
-
sourceViewerFileError: "
|
|
67
|
+
sourceViewerNotFound: "Repositório, branch ou árvore de código não encontrado.",
|
|
68
|
+
sourceViewerFileError: "Não foi possível carregar o arquivo.",
|
|
67
69
|
sourceViewerEmpty: "Nenhuma entrada encontrada.",
|
|
68
70
|
sourceViewerSelectFile: "Selecione um arquivo",
|
|
69
71
|
sourceViewerPreview: "Preview",
|
|
70
|
-
sourceViewerCode: "
|
|
71
|
-
sourceViewerEntryHint: "Explore os arquivos de um
|
|
72
|
-
sourceViewerEntryAction: "Abrir o visualizador de
|
|
72
|
+
sourceViewerCode: "Código",
|
|
73
|
+
sourceViewerEntryHint: "Explore os arquivos de um repositório sem abrir a documentação.",
|
|
74
|
+
sourceViewerEntryAction: "Abrir o visualizador de código",
|
|
73
75
|
sourceViewerBackLabel: "Voltar",
|
|
74
|
-
lastUpdateVersionLabel: "Ultima
|
|
76
|
+
lastUpdateVersionLabel: "Ultima versão de atualização",
|
|
75
77
|
darkMode: "Modo escuro",
|
|
76
78
|
lightMode: "Modo claro",
|
|
77
79
|
blockMenuOnNavActive: "Bloquear menu na navegação",
|
|
@@ -182,6 +184,8 @@ export const defaultLangMenu = {
|
|
|
182
184
|
footerLabel: "Project",
|
|
183
185
|
menuOpen: "Menu",
|
|
184
186
|
menuClose: "Close",
|
|
187
|
+
backgroundAnimationPause: "Pause background animation",
|
|
188
|
+
backgroundAnimationResume: "Resume background animation",
|
|
185
189
|
showMenu: "Show menu",
|
|
186
190
|
mdCopyLabel: "Copy markdown",
|
|
187
191
|
mdCopiedLabel: "Copied!",
|
|
@@ -345,24 +349,26 @@ export const defaultLangMenu = {
|
|
|
345
349
|
PdfUnavailable: "La vista previa del PDF depende del navegador. Usa las acciones disponibles para abrir o descargar el documento.",
|
|
346
350
|
PdfDownloadError: "No se pudo descargar el PDF. Intenta abrir el documento en una pestaña nueva.",
|
|
347
351
|
PdfDownloading: "Descargando PDF...",
|
|
348
|
-
pt: "
|
|
349
|
-
en: "
|
|
350
|
-
es: "
|
|
352
|
+
pt: "Portugués",
|
|
353
|
+
en: "Inglés",
|
|
354
|
+
es: "Español",
|
|
351
355
|
footerLabel: "Proyecto",
|
|
352
|
-
menuOpen: "
|
|
356
|
+
menuOpen: "Menú",
|
|
353
357
|
menuClose: "Cerrar",
|
|
354
|
-
|
|
358
|
+
backgroundAnimationPause: "Pausar animación de fondo",
|
|
359
|
+
backgroundAnimationResume: "Reanudar animación de fondo",
|
|
360
|
+
showMenu: "Abrir menú",
|
|
355
361
|
mdCopyLabel: "Copiar Markdown",
|
|
356
362
|
mdCopiedLabel: "¡Copiado!",
|
|
357
363
|
mdCopyErrorLabel: "No se pudo copiar",
|
|
358
364
|
mdDownloadLabel: "Descargar .md",
|
|
359
|
-
hideMenu: "Cerrar
|
|
365
|
+
hideMenu: "Cerrar menú",
|
|
360
366
|
quickNavigation: "Ctrl+K",
|
|
361
367
|
searchOwnerLabel: "Usuario (ej: Vidigal-code)",
|
|
362
368
|
searchRepoLabel: "Repositorio (ej: git-page-link-create)",
|
|
363
369
|
searchButtonLabel: "Buscar",
|
|
364
370
|
typeToNavigate: "Escribe para navegar...",
|
|
365
|
-
noNavigationResults: "Sin resultados de
|
|
371
|
+
noNavigationResults: "Sin resultados de navegación.",
|
|
366
372
|
focusMode: "Modo foco",
|
|
367
373
|
focusFirstDocument: "Primer documento",
|
|
368
374
|
focusLastDocument: "Último documento",
|
|
@@ -391,25 +397,25 @@ export const defaultLangMenu = {
|
|
|
391
397
|
narrationSettingsHint: "El navegador proporciona las voces. Detén la lectura para cambiar las preferencias.",
|
|
392
398
|
versionLinksLabel: "Enlaces del repositorio",
|
|
393
399
|
titleHeaderMenuMd: "Markdown",
|
|
394
|
-
titleHeaderMenuSourceViewer: "
|
|
400
|
+
titleHeaderMenuSourceViewer: "Código fuente",
|
|
395
401
|
titleHeaderMenuVideo: "Vídeo",
|
|
396
402
|
titleHeaderMenuAudio: "Áudio",
|
|
397
403
|
titleHeaderMenuHtml: "Páginas",
|
|
398
404
|
sourceViewerBranchLabel: "Branch",
|
|
399
405
|
sourceViewerFilterLabel: "Filtrar archivos",
|
|
400
406
|
sourceViewerClearLabel: "Limpiar",
|
|
401
|
-
sourceViewerLoadingTree: "Cargando
|
|
407
|
+
sourceViewerLoadingTree: "Cargando árbol del repositorio...",
|
|
402
408
|
sourceViewerLoadingFile: "Cargando archivo...",
|
|
403
|
-
sourceViewerNotFound: "Repositorio, branch o
|
|
409
|
+
sourceViewerNotFound: "Repositorio, branch o árbol de código no encontrado.",
|
|
404
410
|
sourceViewerFileError: "No se pudo cargar el archivo.",
|
|
405
411
|
sourceViewerEmpty: "No se encontraron entradas.",
|
|
406
412
|
sourceViewerSelectFile: "Selecciona un archivo",
|
|
407
413
|
sourceViewerPreview: "Preview",
|
|
408
|
-
sourceViewerCode: "
|
|
409
|
-
sourceViewerEntryHint: "Explora los archivos de un repositorio sin abrir la
|
|
410
|
-
sourceViewerEntryAction: "Abrir el visor de
|
|
414
|
+
sourceViewerCode: "Código",
|
|
415
|
+
sourceViewerEntryHint: "Explora los archivos de un repositorio sin abrir la documentación.",
|
|
416
|
+
sourceViewerEntryAction: "Abrir el visor de código",
|
|
411
417
|
sourceViewerBackLabel: "Volver",
|
|
412
|
-
lastUpdateVersionLabel: "Ultima
|
|
418
|
+
lastUpdateVersionLabel: "Ultima versión de actualización",
|
|
413
419
|
darkMode: "Modo oscuro",
|
|
414
420
|
lightMode: "Modo claro",
|
|
415
421
|
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/layouts.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ANIMATED_LAYOUTS } from "./animated-layouts.mjs";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* 25 modern standalone layouts. Each is a single fixed-aesthetic theme; colors
|
|
3
5
|
* live in cli/data/theme-colors.mjs under the matching id. Defined as data so the
|
|
@@ -432,6 +434,7 @@ export const LAYOUTS = [
|
|
|
432
434
|
mode: "light",
|
|
433
435
|
},
|
|
434
436
|
...MODERN_LAYOUTS,
|
|
437
|
+
...ANIMATED_LAYOUTS,
|
|
435
438
|
];
|
|
436
439
|
|
|
437
|
-
export const FALLBACK_LAYOUTS = LAYOUTS.filter((layout) => layout.id === "aurora-dark" || layout.id === "aurora-light");
|
|
440
|
+
export const FALLBACK_LAYOUTS = LAYOUTS.filter((layout) => layout.id === "aurora-dark" || layout.id === "aurora-light");
|
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/data/theme-colors.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ANIMATED_THEME_COLORS } from "./animated-layouts.mjs";
|
|
2
|
+
|
|
1
3
|
export const THEME_COLORS = {
|
|
2
4
|
"duet-light": {
|
|
3
5
|
background: "#FFFFFF", primary: "#000000", secondary: "#5E5E5E", text: "#000000",
|
|
@@ -441,4 +443,5 @@ export const THEME_COLORS = {
|
|
|
441
443
|
"blush-light": { background: "#FFF5F8", primary: "#DB2777", secondary: "#F472B6", text: "#3D1A29", textSecondary: "#8A5A6E", cardBackground: "#FFFFFF", cardBorder: "#FBD4E2", error: "#E11D48", success: "#10B981" },
|
|
442
444
|
"azure-light": { background: "#F2F8FF", primary: "#2563EB", secondary: "#60A5FA", text: "#11243D", textSecondary: "#4D6488", cardBackground: "#FFFFFF", cardBorder: "#D0E2FB", error: "#E11D48", success: "#059669" },
|
|
443
445
|
"sand-light": { background: "#FBF7F0", primary: "#B45309", secondary: "#D97706", text: "#332814", textSecondary: "#786A4D", cardBackground: "#FFFFFF", cardBorder: "#ECE0C8", error: "#DC2626", success: "#4D7C4F" },
|
|
444
|
-
|
|
446
|
+
...ANIMATED_THEME_COLORS,
|
|
447
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitpagedocs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
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.12",
|
|
33
|
+
"@gitpagedocs/tools": "^0.0.12",
|
|
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";
|