@gitpagedocs/cli 0.0.17 → 0.0.19
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 +5 -1
- package/content/docs-en.mjs +21 -5
- package/content/docs-es.mjs +21 -5
- package/content/docs-pt.mjs +21 -5
- package/content/practical-en.mjs +3 -3
- package/content/practical-es.mjs +3 -3
- package/content/practical-pt.mjs +3 -3
- package/contracts/doc-versions.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ The AI-CLI implementation lives in `cli/ai/` (relocated from the frontend so the
|
|
|
39
39
|
|
|
40
40
|
## Generated documentation and themes
|
|
41
41
|
|
|
42
|
-
Version 0.0.
|
|
42
|
+
Version 0.0.19 registers documentation versions 0.0.19, 0.0.18, 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 and 0.0.9, newest first, with English, Portuguese and Spanish pages. Existing older folders are preserved. Source content lives in `content/`; defaults and UI labels live in `data/`; edit these sources before regeneration. The published package includes the English PDF guide and the local HTML integration for the externally hosted DOOM player.
|
|
43
43
|
|
|
44
44
|
The scaffold includes independent file pagination for Markdown, HTML, video, audio and PDF in page 50, with two localized HTML samples, local WAV tracks and a PDF reference. Configure shared controls in `site.containerPagination` and each sequence in its route's `pagination.items`. The generated pagination and Markdown markers guides explain defaults, route overrides, focus/search integration and theme-aware highlights linked from the document index. `RouteGuideSpeciFicbrand` keeps its existing heading-filter behavior.
|
|
45
45
|
|
|
@@ -55,6 +55,10 @@ The [MCP reference](../mcp/README.md) documents installation, client configurati
|
|
|
55
55
|
|
|
56
56
|
Each `VersionControl.versions` entry accepts `branch`, `release` and `commit` arrays of `{ name, url }`. Names support Unicode, preserve their configured order and remain unchanged when the interface language changes. Legacy URL strings use translated category labels; empty categories are hidden. HTTP(S) and safe relative URLs are supported, unsupported schemes and invalid entries are omitted, and exact duplicates within a category appear once. The responsive version-links dialog groups links by category, scrolls long lists internally, follows theme tokens and supports keyboard navigation and Escape. Native links open a new tab with `noopener noreferrer`; `site.icons.VersionLinks` configures the trigger appearance. See Configuration for the historical 0.0.16 example and complete behavior.
|
|
57
57
|
|
|
58
|
+
The viewer's introduction guide changes one chapter per wheel/trackpad gesture, keyboard step or vertical swipe, without stopping text between scenes. Chapter-rail selections and back to top are immediate. One header play/pause button controls guide effects and the theme background without replacing content; reduced-motion preferences always prevail, with a disabled control explaining the system preference. The hero is visible from the first render, with optional small parallax offsets and brief section reveals. The CLI generates the documentation; the viewer itself is supplied by the source checkout or GitHub Pages build.
|
|
59
|
+
|
|
60
|
+
Expanding video, audio or HTML preserves the selected file and the same player or iframe instance when opening and closing. The viewer requests native fullscreen when available; Escape or browser controls close it and synchronize the URL. If fullscreen is unavailable or denied, the same content expands inside the page without a modal, with a close button and Escape handling within the expanded region. Markdown and PDF keep their existing viewing behavior.
|
|
61
|
+
|
|
58
62
|
Configure these arrays in `gitpagedocs/config.json`, independently for each documentation version. Merge entries with your existing catalog; do not replace other versions. See the [named-link example](../README.md#named-links-for-documentation-versions) for multiple branches, published releases and real commit URLs. The example's `develop` branch and owner/repository placeholders must be replaced with an existing branch in your repository. These fields link to existing resources; the CLI does not create those branches, commits or releases.
|
|
59
63
|
|
|
60
64
|
## Packaging and release
|
package/content/docs-en.mjs
CHANGED
|
@@ -49,7 +49,7 @@ PDF actions use icons by default. Configure \`site.icons.PdfDownload\` (\`LuDown
|
|
|
49
49
|
|
|
50
50
|
## Route and menu example
|
|
51
51
|
|
|
52
|
-
In \`gitpagedocs/docs/versions/0.0.
|
|
52
|
+
In \`gitpagedocs/docs/versions/0.0.19/config.json\`, keep route and menu arrays at the top level:
|
|
53
53
|
|
|
54
54
|
\`\`\`json
|
|
55
55
|
{
|
|
@@ -58,9 +58,9 @@ In \`gitpagedocs/docs/versions/0.0.17/config.json\`, keep route and menu arrays
|
|
|
58
58
|
"title": { "en": "Project guide (English)", "pt": "Guia do projeto (inglês)", "es": "Guía del proyecto (inglés)" },
|
|
59
59
|
"pdf": {
|
|
60
60
|
"pathPdf": {
|
|
61
|
-
"en": "gitpagedocs/docs/versions/0.0.
|
|
62
|
-
"pt": "gitpagedocs/docs/versions/0.0.
|
|
63
|
-
"es": "gitpagedocs/docs/versions/0.0.
|
|
61
|
+
"en": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"pt": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
63
|
+
"es": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf"
|
|
64
64
|
},
|
|
65
65
|
"previewEnabled": true,
|
|
66
66
|
"downloadEnabled": true,
|
|
@@ -209,7 +209,7 @@ Git Page Docs is a **pnpm + turborepo monorepo** that turns a repository's \`git
|
|
|
209
209
|
## Stack
|
|
210
210
|
|
|
211
211
|
- Next.js 15 (App Router) + React 19 + TypeScript; static export for GitHub Pages
|
|
212
|
-
- gray-matter + marked for Markdown; react-icons
|
|
212
|
+
- gray-matter + marked + hast-util-sanitize for Markdown; react-icons
|
|
213
213
|
- pnpm workspaces + turborepo; Vitest + Playwright; ESLint
|
|
214
214
|
|
|
215
215
|
## Highlights
|
|
@@ -222,6 +222,10 @@ Git Page Docs is a **pnpm + turborepo monorepo** that turns a repository's \`git
|
|
|
222
222
|
`,
|
|
223
223
|
functionalities: `# Functionalities
|
|
224
224
|
|
|
225
|
+
Markdown rendering supports GitHub-flavored tables, task lists, strikethrough and autolinks. Rendered HTML is sanitized before display; scripts, unsafe link schemes and executable attributes are removed. Tables and code blocks scroll within narrow containers, while text, links, borders and surfaces follow the selected theme.
|
|
226
|
+
|
|
227
|
+
Documentation Markdown and source-viewer previews use solid card backgrounds. Text, links, muted text and inline code derive colors with at least 4.5:1 contrast across the 124 shipped themes.
|
|
228
|
+
|
|
225
229
|
Complete reference of CLI options, configuration keys, and runtime features.
|
|
226
230
|
|
|
227
231
|
## Command line
|
|
@@ -744,6 +748,8 @@ The \`/ai\` console and the chat drawer gate access behind a local password that
|
|
|
744
748
|
`,
|
|
745
749
|
themes: `# Themes and Layouts
|
|
746
750
|
|
|
751
|
+
Repository search carries the selected theme and light/dark mode into the destination documentation. If that theme is available in the destination catalog, it remains selected. Otherwise the viewer uses the destination documentation's configured default theme and mode.
|
|
752
|
+
|
|
747
753
|
Themes are JSON templates mapped by \`layoutsConfig.json\`.
|
|
748
754
|
|
|
749
755
|
## Strategy options
|
|
@@ -981,6 +987,10 @@ Site display settings are in \`gitpagedocs/config.json\`. The interactive genera
|
|
|
981
987
|
`,
|
|
982
988
|
navigation: `# Navigation and nested menus
|
|
983
989
|
|
|
990
|
+
On small screens, the theme and language icon buttons fill the mobile menu row and keep their icons centered. The same controls remain compact in the desktop header.
|
|
991
|
+
|
|
992
|
+
With the navigation padlock unlocked, the desktop menu scrolls its current item into view when moving forward or backward. Opening or unlocking the menu also reveals the current item. The menu scroll is independent of the document; a locked menu keeps its scroll position.
|
|
993
|
+
|
|
984
994
|
Routes define page content; menus define how readers reach it. Configure them in \`gitpagedocs/docs/versions/<version>/config.json\`. Site-wide presentation options belong to \`gitpagedocs/config.json\`.
|
|
985
995
|
|
|
986
996
|
\`\`\`json
|
|
@@ -996,6 +1006,12 @@ Routes define page content; menus define how readers reach it. Configure them in
|
|
|
996
1006
|
|
|
997
1007
|
The \`/introduction-guide\` route is available in repository-search builds. Its chapter tour follows native page scrolling. Starting with viewer version 0.0.16, stopping at a chapter transition keeps the text readable without adjacent chapters overlapping. Parallax effects, reduced-motion preferences and the stacked layout for short landscape viewports remain supported.
|
|
998
1008
|
|
|
1009
|
+
Viewer version 0.0.18 advances or returns one chapter per wheel/trackpad gesture, keyboard step or vertical swipe. Chapter changes and chapter-rail selections are immediate, so text does not stop between scenes. Back to top also jumps immediately and focuses the hero. Short landscape viewports retain the stacked reading layout.
|
|
1010
|
+
|
|
1011
|
+
One play/pause button in the header controls the guide effects and the selected theme's animated background together, including the fallback backdrop for legacy themes. Effects start enabled; pausing preserves the current chapter and content. The operating system's reduced-motion preference always takes precedence; the disabled control explains when the system has reduced animations. The title is visible from the first render without animated blur or per-character stagger; optional parallax uses small offsets and section reveals are brief. The controls do not alter existing theme palettes.
|
|
1012
|
+
|
|
1013
|
+
Expanding video, audio or HTML preserves the selected file and the same player or iframe instance when opening and closing. The viewer requests native fullscreen when available; Escape or browser controls close it and synchronize the URL. If fullscreen is unavailable or denied, the same content expands inside the page without a modal, with a close button and Escape handling within the expanded region. Markdown and PDF keep their existing viewing behavior.
|
|
1014
|
+
|
|
999
1015
|
## Build a menu tree
|
|
1000
1016
|
|
|
1001
1017
|
Each \`menus-header-md\` entry has an \`id\` and localized \`pt\`, \`en\`, \`es\` objects with \`title\` and optional \`path-click\`. Add \`submenus\` containing more entries to nest the tree. A language object may also contain localized \`submenus\` with the same title/path structure. Use one form consistently to avoid listing the same child twice.
|
package/content/docs-es.mjs
CHANGED
|
@@ -48,7 +48,7 @@ Las acciones PDF usan iconos por defecto. Configura \`site.icons.PdfDownload\` (
|
|
|
48
48
|
|
|
49
49
|
## Ejemplo de ruta y menú
|
|
50
50
|
|
|
51
|
-
En \`gitpagedocs/docs/versions/0.0.
|
|
51
|
+
En \`gitpagedocs/docs/versions/0.0.19/config.json\`, conserva las listas de rutas y menús en el nivel principal:
|
|
52
52
|
|
|
53
53
|
\`\`\`json
|
|
54
54
|
{
|
|
@@ -57,9 +57,9 @@ En \`gitpagedocs/docs/versions/0.0.17/config.json\`, conserva las listas de ruta
|
|
|
57
57
|
"title": { "en": "Project guide (English)", "pt": "Guia do projeto (inglês)", "es": "Guía del proyecto (inglés)" },
|
|
58
58
|
"pdf": {
|
|
59
59
|
"pathPdf": {
|
|
60
|
-
"en": "gitpagedocs/docs/versions/0.0.
|
|
61
|
-
"pt": "gitpagedocs/docs/versions/0.0.
|
|
62
|
-
"es": "gitpagedocs/docs/versions/0.0.
|
|
60
|
+
"en": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
61
|
+
"pt": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"es": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf"
|
|
63
63
|
},
|
|
64
64
|
"previewEnabled": true,
|
|
65
65
|
"downloadEnabled": true,
|
|
@@ -208,7 +208,7 @@ Git Page Docs es un monorepo pnpm + turborepo que convierte la carpeta \`gitpage
|
|
|
208
208
|
## Stack
|
|
209
209
|
|
|
210
210
|
- Next.js 15 (App Router) + React 19 + TypeScript; exportación estática para GitHub Pages
|
|
211
|
-
- gray-matter + marked para Markdown; react-icons
|
|
211
|
+
- gray-matter + marked + hast-util-sanitize para Markdown; react-icons
|
|
212
212
|
- pnpm workspaces + turborepo; Vitest + Playwright; ESLint
|
|
213
213
|
|
|
214
214
|
## Destacados
|
|
@@ -221,6 +221,10 @@ Git Page Docs es un monorepo pnpm + turborepo que convierte la carpeta \`gitpage
|
|
|
221
221
|
`,
|
|
222
222
|
functionalities: `# Funcionalidades
|
|
223
223
|
|
|
224
|
+
La renderización Markdown admite tablas, listas de tareas, texto tachado y enlaces automáticos de GitHub-flavored Markdown. El HTML renderizado se sanea antes de mostrarse; se eliminan scripts, esquemas de enlaces inseguros y atributos ejecutables. Las tablas y los bloques de código se desplazan dentro de contenedores estrechos, mientras que texto, enlaces, bordes y superficies siguen el tema seleccionado.
|
|
225
|
+
|
|
226
|
+
El Markdown de la documentación y las vistas previas del código usan fondos sólidos de tarjeta. El texto, los enlaces, el texto secundario y el código en línea derivan colores con un contraste mínimo de 4,5:1 en los 124 temas incluidos.
|
|
227
|
+
|
|
224
228
|
Referencia completa de opciones CLI, claves de configuración y funciones del runtime.
|
|
225
229
|
|
|
226
230
|
## Línea de comandos
|
|
@@ -697,6 +701,8 @@ Adaptadores soportados:
|
|
|
697
701
|
`,
|
|
698
702
|
themes: `# Temas y layouts
|
|
699
703
|
|
|
704
|
+
La búsqueda de repositorios lleva el tema y el modo claro/oscuro seleccionados a la documentación de destino. Si el tema existe en el catálogo de destino, permanece seleccionado. En caso contrario, el visor usa el tema y el modo predeterminados configurados en esa documentación.
|
|
705
|
+
|
|
700
706
|
Los temas son templates JSON mapeados por \`layoutsConfig.json\`.
|
|
701
707
|
|
|
702
708
|
## Archivos
|
|
@@ -934,6 +940,10 @@ Las opciones visuales están en \`gitpagedocs/config.json\`. El generador intera
|
|
|
934
940
|
`,
|
|
935
941
|
navigation: `# Navegación y submenús
|
|
936
942
|
|
|
943
|
+
En pantallas pequeñas, los botones con iconos de tema e idioma ocupan todo el ancho de la fila del menú móvil y mantienen los iconos centrados. Los mismos controles siguen siendo compactos en la cabecera de escritorio.
|
|
944
|
+
|
|
945
|
+
Con el candado de navegación desbloqueado, el menú de escritorio desplaza su contenido para mostrar el elemento actual al avanzar o retroceder. Abrir o desbloquear el menú también muestra el elemento actual. El desplazamiento del menú es independiente del documento; un menú bloqueado conserva su posición.
|
|
946
|
+
|
|
937
947
|
Las rutas definen el contenido; los menús definen cómo encontrarlo. Configúralos en \`gitpagedocs/docs/versions/<version>/config.json\`. Las opciones visuales globales están en \`gitpagedocs/config.json\`.
|
|
938
948
|
|
|
939
949
|
\`\`\`json
|
|
@@ -949,6 +959,12 @@ Las rutas definen el contenido; los menús definen cómo encontrarlo. Configúra
|
|
|
949
959
|
|
|
950
960
|
La ruta \`/introduction-guide\` está disponible en los builds con búsqueda de repositorios. Su recorrido por capítulos sigue el desplazamiento nativo de la página. A partir de la versión 0.0.16 del visor, detenerse en una transición mantiene el texto legible, sin superposición entre capítulos adyacentes. Se conservan los efectos de parallax, la preferencia de movimiento reducido y el diseño en lista para ventanas de poca altura en orientación horizontal.
|
|
951
961
|
|
|
962
|
+
En la versión 0.0.18 del visor, cada gesto de rueda/trackpad, paso con el teclado o deslizamiento vertical avanza o retrocede un capítulo. Los cambios de capítulo y las selecciones en la lista lateral son inmediatos, sin dejar el texto detenido entre escenas. Volver arriba también salta inmediatamente y enfoca la presentación inicial. Las ventanas de poca altura en orientación horizontal conservan el diseño de lectura en lista.
|
|
963
|
+
|
|
964
|
+
Un único botón de reproducir/pausar en la cabecera controla los efectos de la guía y el fondo animado del tema seleccionado, incluido el fondo alternativo de los temas antiguos. Los efectos empiezan activos; pausarlos conserva el capítulo y el contenido actuales. La preferencia de movimiento reducido del sistema operativo siempre prevalece; el control deshabilitado explica cuándo el sistema ha reducido las animaciones. El título es visible desde el primer renderizado, sin desenfoque animado ni entrada escalonada por carácter; el parallax opcional utiliza desplazamientos pequeños y las apariciones de las secciones son breves. Los controles no modifican las paletas de los temas existentes.
|
|
965
|
+
|
|
966
|
+
Expandir vídeo, audio o HTML conserva el archivo seleccionado y la misma instancia del reproductor o iframe al abrir y cerrar. El visor solicita pantalla completa nativa cuando está disponible; Escape o los controles del navegador cierran la expansión y sincronizan la URL. Si la pantalla completa no está disponible o se rechaza, el mismo contenido se expande dentro de la página, sin un modal, con un botón de cierre y Escape dentro de la región expandida. Markdown y PDF mantienen su comportamiento de visualización existente.
|
|
967
|
+
|
|
952
968
|
## Crear el árbol de menús
|
|
953
969
|
|
|
954
970
|
Cada entrada de \`menus-header-md\` tiene \`id\` y objetos \`pt\`, \`en\`, \`es\` con \`title\` y \`path-click\` opcional. Añade \`submenus\` con nuevas entradas para anidar el árbol. El objeto de un idioma también acepta \`submenus\` localizados con título/ruta. Utiliza una forma de manera consistente para no listar el mismo hijo dos veces.
|
package/content/docs-pt.mjs
CHANGED
|
@@ -48,7 +48,7 @@ As ações PDF usam ícones por padrão. Configure \`site.icons.PdfDownload\` (\
|
|
|
48
48
|
|
|
49
49
|
## Exemplo de rota e menu
|
|
50
50
|
|
|
51
|
-
Em \`gitpagedocs/docs/versions/0.0.
|
|
51
|
+
Em \`gitpagedocs/docs/versions/0.0.19/config.json\`, mantenha as listas de rotas e menus no nível principal:
|
|
52
52
|
|
|
53
53
|
\`\`\`json
|
|
54
54
|
{
|
|
@@ -57,9 +57,9 @@ Em \`gitpagedocs/docs/versions/0.0.17/config.json\`, mantenha as listas de rotas
|
|
|
57
57
|
"title": { "en": "Project guide (English)", "pt": "Guia do projeto (inglês)", "es": "Guía del proyecto (inglés)" },
|
|
58
58
|
"pdf": {
|
|
59
59
|
"pathPdf": {
|
|
60
|
-
"en": "gitpagedocs/docs/versions/0.0.
|
|
61
|
-
"pt": "gitpagedocs/docs/versions/0.0.
|
|
62
|
-
"es": "gitpagedocs/docs/versions/0.0.
|
|
60
|
+
"en": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
61
|
+
"pt": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"es": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf"
|
|
63
63
|
},
|
|
64
64
|
"previewEnabled": true,
|
|
65
65
|
"downloadEnabled": true,
|
|
@@ -208,7 +208,7 @@ Git Page Docs é um monorepo pnpm + turborepo que transforma a pasta \`gitpagedo
|
|
|
208
208
|
## Stack
|
|
209
209
|
|
|
210
210
|
- Next.js 15 (App Router) + React 19 + TypeScript; exportação estática para GitHub Pages
|
|
211
|
-
- gray-matter + marked para Markdown; react-icons
|
|
211
|
+
- gray-matter + marked + hast-util-sanitize para Markdown; react-icons
|
|
212
212
|
- pnpm workspaces + turborepo; Vitest + Playwright; ESLint
|
|
213
213
|
|
|
214
214
|
## Destaques
|
|
@@ -221,6 +221,10 @@ Git Page Docs é um monorepo pnpm + turborepo que transforma a pasta \`gitpagedo
|
|
|
221
221
|
`,
|
|
222
222
|
functionalities: `# Funcionalidades
|
|
223
223
|
|
|
224
|
+
A renderização Markdown aceita tabelas, listas de tarefas, texto tachado e links automáticos de GitHub-flavored Markdown. O HTML renderizado é sanitizado antes da exibição; scripts, esquemas de links inseguros e atributos executáveis são removidos. Tabelas e blocos de código rolam dentro de contêineres estreitos, enquanto texto, links, bordas e superfícies seguem o tema selecionado.
|
|
225
|
+
|
|
226
|
+
O Markdown da documentação e a prévia do visualizador de código usam fundos sólidos de cartão. Texto, links, texto secundário e código inline derivam cores com contraste mínimo de 4,5:1 nos 124 temas incluídos.
|
|
227
|
+
|
|
224
228
|
Referência completa de opções da CLI, chaves de configuração e recursos do runtime.
|
|
225
229
|
|
|
226
230
|
## Linha de comando
|
|
@@ -697,6 +701,8 @@ Adaptadores suportados:
|
|
|
697
701
|
`,
|
|
698
702
|
themes: `# Temas e layouts
|
|
699
703
|
|
|
704
|
+
A busca de repositórios leva o tema e o modo claro/escuro selecionados para a documentação de destino. Se o tema existir no catálogo de destino, ele continua selecionado. Caso contrário, o visualizador usa o tema e o modo padrão configurados nessa documentação.
|
|
705
|
+
|
|
700
706
|
Temas são templates JSON mapeados por \`layoutsConfig.json\`.
|
|
701
707
|
|
|
702
708
|
## Arquivos
|
|
@@ -934,6 +940,10 @@ As opções visuais ficam em \`gitpagedocs/config.json\`. O gerador interativo/c
|
|
|
934
940
|
`,
|
|
935
941
|
navigation: `# Navegação e submenus
|
|
936
942
|
|
|
943
|
+
Em telas pequenas, os botões com ícones de tema e idioma ocupam a largura da linha do menu mobile e mantêm os ícones centralizados. Os mesmos controles continuam compactos no cabeçalho desktop.
|
|
944
|
+
|
|
945
|
+
Com o cadeado de navegação destravado, o menu desktop rola até deixar o item atual visível ao avançar ou voltar. Abrir ou destravar o menu também revela o item atual. A rolagem do menu é independente da documentação; o menu travado mantém sua posição de rolagem.
|
|
946
|
+
|
|
937
947
|
Rotas definem o conteúdo; menus definem como o leitor o encontra. Configure-os em \`gitpagedocs/docs/versions/<version>/config.json\`. Opções visuais globais ficam em \`gitpagedocs/config.json\`.
|
|
938
948
|
|
|
939
949
|
\`\`\`json
|
|
@@ -949,6 +959,12 @@ Rotas definem o conteúdo; menus definem como o leitor o encontra. Configure-os
|
|
|
949
959
|
|
|
950
960
|
A rota \`/introduction-guide\` está disponível nos builds com busca de repositórios. Seu tour de capítulos acompanha a rolagem nativa da página. A partir da versão 0.0.16 do visualizador, parar em uma transição mantém o texto legível, sem sobreposição entre capítulos adjacentes. Os efeitos de parallax, a preferência por movimento reduzido e o layout em lista para telas baixas em orientação paisagem continuam disponíveis.
|
|
951
961
|
|
|
962
|
+
Na versão 0.0.18 do visualizador, cada gesto da roda do mouse/trackpad, passo pelo teclado ou deslize vertical avança ou retorna um capítulo. A troca de capítulo e a seleção na lista lateral são imediatas, sem deixar o texto parado entre cenas. Voltar ao topo também salta imediatamente e coloca o foco na apresentação inicial. Telas baixas em orientação paisagem mantêm o layout de leitura em lista.
|
|
963
|
+
|
|
964
|
+
Um único botão de reproduzir/pausar no cabeçalho controla os efeitos do guia e o fundo animado do tema selecionado, incluindo o fundo alternativo dos temas antigos. Os efeitos começam ativos; pausar preserva o capítulo e o conteúdo atuais. A preferência do sistema operacional por movimento reduzido sempre prevalece; o controle desabilitado explica quando o sistema reduziu as animações. O título fica visível desde a primeira renderização, sem blur animado ou entrada escalonada por caractere; o parallax opcional usa deslocamentos pequenos e as aparições das seções são breves. Os controles não alteram as paletas dos temas existentes.
|
|
965
|
+
|
|
966
|
+
Expandir vídeo, áudio ou HTML preserva o arquivo selecionado e a mesma instância do player ou iframe ao abrir e fechar. O visualizador solicita tela cheia nativa quando disponível; Escape ou os controles do navegador fecham a expansão e sincronizam a URL. Se a tela cheia não estiver disponível ou for negada, o mesmo conteúdo se expande dentro da página, sem modal, com botão de fechar e Escape dentro da região expandida. Markdown e PDF mantêm o comportamento de visualização existente.
|
|
967
|
+
|
|
952
968
|
## Montar a árvore de menus
|
|
953
969
|
|
|
954
970
|
Cada entrada de \`menus-header-md\` tem \`id\` e objetos \`pt\`, \`en\`, \`es\` com \`title\` e \`path-click\` opcional. Adicione \`submenus\` com novas entradas para aninhar a árvore. O objeto de um idioma também aceita \`submenus\` localizados com título/caminho. Use uma forma de maneira consistente para não listar o mesmo filho duas vezes.
|
package/content/practical-en.mjs
CHANGED
|
@@ -13,7 +13,7 @@ Add this route to the version configuration's existing \`routes-html\` array. Ke
|
|
|
13
13
|
${HTML_ROUTE_JSON}
|
|
14
14
|
\`\`\`
|
|
15
15
|
|
|
16
|
-
Add a localized item in \`menus-header-html\`. Each \`path-click\` must match its language's route path, such as \`gitpagedocs/docs/versions/0.0.
|
|
16
|
+
Add a localized item in \`menus-header-html\`. Each \`path-click\` must match its language's route path, such as \`gitpagedocs/docs/versions/0.0.19/en/doom.html\`; do not substitute \`page:29\` for this local HTML path. Menu labels do not create routes. HTML uses the same recursive \`submenus\` structure as other menus.
|
|
17
17
|
|
|
18
18
|
## Size, content and external URLs
|
|
19
19
|
|
|
@@ -35,9 +35,9 @@ This guide builds a small multilingual documentation site with two Markdown page
|
|
|
35
35
|
|
|
36
36
|
## 1. Generate and inspect the scaffold
|
|
37
37
|
|
|
38
|
-
The scaffold includes versions 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 and 0.0.9 in the version selector, newest first. All
|
|
38
|
+
The scaffold includes versions 0.0.19, 0.0.18, 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 and 0.0.9 in the version selector, newest first. All eleven contain the current examples; the package version is 0.0.19. Their paths and version badges are generated for the selected documentation version. Older existing version folders are not deleted.
|
|
39
39
|
|
|
40
|
-
Run \`npx --yes @gitpagedocs/cli@0.0.
|
|
40
|
+
Run \`npx --yes @gitpagedocs/cli@0.0.19 --no-interactive --owner YOUR_USER --repo YOUR_REPOSITORY\` in a new project directory. In this source repository, \`node cli/index.mjs\` runs the checked-out version. Generation writes configuration and documentation; it does not start the Next.js viewer.
|
|
41
41
|
|
|
42
42
|
Use the following complete JSON as a minimal root-config example in \`gitpagedocs/config.json\`. For an existing site, merge the relevant fields and preserve its repository identity, deployment settings, themes and other versions.
|
|
43
43
|
|
package/content/practical-es.mjs
CHANGED
|
@@ -13,7 +13,7 @@ Añade esta ruta al array \`routes-html\` existente en la configuración de la v
|
|
|
13
13
|
${HTML_ROUTE_JSON}
|
|
14
14
|
\`\`\`
|
|
15
15
|
|
|
16
|
-
Añade un elemento traducido en \`menus-header-html\`. Cada \`path-click\` debe coincidir con la ruta de su idioma, como \`gitpagedocs/docs/versions/0.0.
|
|
16
|
+
Añade un elemento traducido en \`menus-header-html\`. Cada \`path-click\` debe coincidir con la ruta de su idioma, como \`gitpagedocs/docs/versions/0.0.19/es/doom.html\`; no sustituyas esta ruta HTML local por \`page:29\`. Una etiqueta de menú no crea una ruta. HTML admite la misma estructura recursiva \`submenus\` que los demás menús.
|
|
17
17
|
|
|
18
18
|
## Tamaño, contenido y URLs externas
|
|
19
19
|
|
|
@@ -35,9 +35,9 @@ Esta guía crea un sitio pequeño en tres idiomas, con dos páginas Markdown y u
|
|
|
35
35
|
|
|
36
36
|
## 1. Genera y revisa la estructura
|
|
37
37
|
|
|
38
|
-
El scaffold incluye las versiones 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 y 0.0.9 en el selector, de la más reciente a la más antigua. Las
|
|
38
|
+
El scaffold incluye las versiones 0.0.19, 0.0.18, 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 y 0.0.9 en el selector, de la más reciente a la más antigua. Las once contienen los ejemplos actuales; la versión del paquete es 0.0.19. Las rutas y etiquetas se generan para la versión correspondiente de la documentación. No se eliminan las carpetas existentes de versiones anteriores.
|
|
39
39
|
|
|
40
|
-
Ejecuta \`npx --yes @gitpagedocs/cli@0.0.
|
|
40
|
+
Ejecuta \`npx --yes @gitpagedocs/cli@0.0.19 --no-interactive --owner TU_USUARIO --repo TU_REPOSITORIO\` en un directorio de proyecto nuevo. En este repositorio de código fuente, \`node cli/index.mjs\` ejecuta la versión del checkout. La generación escribe configuración y documentación; no inicia el visor Next.js.
|
|
41
41
|
|
|
42
42
|
El siguiente JSON completo es un ejemplo mínimo de \`gitpagedocs/config.json\`. Para un sitio existente, combina los campos relevantes y conserva la identidad del repositorio, la publicación, los temas y las demás versiones.
|
|
43
43
|
|
package/content/practical-pt.mjs
CHANGED
|
@@ -13,7 +13,7 @@ Adicione esta rota ao array \`routes-html\` existente na configuração da vers
|
|
|
13
13
|
${HTML_ROUTE_JSON}
|
|
14
14
|
\`\`\`
|
|
15
15
|
|
|
16
|
-
Adicione um item traduzido em \`menus-header-html\`. Cada \`path-click\` deve corresponder ao caminho da rota no mesmo idioma, como \`gitpagedocs/docs/versions/0.0.
|
|
16
|
+
Adicione um item traduzido em \`menus-header-html\`. Cada \`path-click\` deve corresponder ao caminho da rota no mesmo idioma, como \`gitpagedocs/docs/versions/0.0.19/pt/doom.html\`; não substitua esse caminho HTML local por \`page:29\`. Um rótulo de menu não cria uma rota. HTML aceita a mesma estrutura recursiva \`submenus\` dos outros menus.
|
|
17
17
|
|
|
18
18
|
## Dimensões, conteúdo e URLs externas
|
|
19
19
|
|
|
@@ -35,9 +35,9 @@ Este guia monta um site pequeno em três idiomas, com duas páginas Markdown e m
|
|
|
35
35
|
|
|
36
36
|
## 1. Gere e confira a estrutura
|
|
37
37
|
|
|
38
|
-
O scaffold inclui as versões 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 e 0.0.9 no seletor, da mais recente para a mais antiga. As
|
|
38
|
+
O scaffold inclui as versões 0.0.19, 0.0.18, 0.0.17, 0.0.16, 0.0.15, 0.0.14, 0.0.13, 0.0.12, 0.0.11, 0.0.10 e 0.0.9 no seletor, da mais recente para a mais antiga. As onze contêm os exemplos atuais; a versão do pacote é 0.0.19. Caminhos e rótulos de versão são gerados para a versão correspondente da documentação. Pastas existentes de versões anteriores não são apagadas.
|
|
39
39
|
|
|
40
|
-
Execute \`npx --yes @gitpagedocs/cli@0.0.
|
|
40
|
+
Execute \`npx --yes @gitpagedocs/cli@0.0.19 --no-interactive --owner SEU_USUARIO --repo SEU_REPOSITORIO\` em um diretório de projeto novo. Neste repositório de código-fonte, \`node cli/index.mjs\` executa a versão do checkout. A geração grava configuração e documentação; ela não inicia o visualizador Next.js.
|
|
41
41
|
|
|
42
42
|
O JSON completo abaixo é um exemplo mínimo de \`gitpagedocs/config.json\`. Em um site existente, mescle os campos relevantes e preserve a identidade do repositório, opções de publicação, temas e demais versões.
|
|
43
43
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = "0.0.
|
|
1
|
+
export const PACKAGE_VERSION = "0.0.19";
|
|
2
2
|
|
|
3
|
-
export const DOC_VERSIONS = [PACKAGE_VERSION, "0.0.16", "0.0.15", "0.0.14", "0.0.13", "0.0.12", "0.0.11", "0.0.10", "0.0.9"];
|
|
3
|
+
export const DOC_VERSIONS = [PACKAGE_VERSION, "0.0.18", "0.0.17", "0.0.16", "0.0.15", "0.0.14", "0.0.13", "0.0.12", "0.0.11", "0.0.10", "0.0.9"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitpagedocs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
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.19",
|
|
33
|
+
"@gitpagedocs/tools": "^0.0.19",
|
|
34
34
|
"tsx": "^4.21.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|