@gitpagedocs/cli 0.0.18 → 0.0.20
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 +3 -1
- package/content/docs-en.mjs +17 -5
- package/content/docs-es.mjs +17 -5
- package/content/docs-pt.mjs +17 -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,12 +39,14 @@ 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.20 registers documentation versions 0.0.20, 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
|
|
|
46
46
|
The scaffold demonstrates parent Markdown destinations with recursive submenus and navigable breadcrumbs, PDF routes/actions, and a page with ordered, repeated Markdown/HTML/video/audio/PDF blocks. Route titles and descriptions have independent placement settings. Focus mode provides source actions and eight document/section navigation controls; browser narration is configured separately. See the generated configuration, content-blocks, focus, accessibility and HTML/PDF guides for complete examples.
|
|
47
47
|
|
|
48
|
+
Markdown code blocks with a supported language, including JSON, use Shiki syntax highlighting in documentation, focus mode, fullscreen and source-viewer previews. The active theme controls readable token colors and a reading surface consistent with its surrounding card across the 124 themes. Unsupported or unspecified languages remain readable plain text; very large blocks may also remain plain text to keep the reader responsive. Copy and download preserve the original Markdown.
|
|
49
|
+
|
|
48
50
|
`gitpagedocs --layoutconfig` ships all 124 themes: 64 original themes, 20 standalone animated presets and 20 additional dark/light parallax pairs. New presets originate in `gitpagelayouts/v2/` and are compiled into package-local data by `pnpm run layouts:sync`; a standalone CLI installation does not need the source repository to emit them. Customize backgrounds through `site.backgroundEffects`, including global/per-theme settings, colors, density, speed and parallax. The master switch disables backgrounds; `overrides.accessibility.showPauseButton: false` hides only the pause control.
|
|
49
51
|
|
|
50
52
|
`site.icons.VersionSelector` and `BackgroundAnimationPause`/`BackgroundAnimationResume` use the same `reactIcon`, `tag`, `size`, `colorDark` and `colorLight` contract as other controls. Pause/resume appears in the navigation menu beside its lock; a manual pause persists across theme and menu changes. `reactIcon: false` selects localized text independently for each control.
|
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.20/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.18/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.20/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"pt": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf",
|
|
63
|
+
"es": "gitpagedocs/docs/versions/0.0.20/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,12 @@ 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
|
+
Markdown uses a reading surface consistent with its surrounding card in documentation, focus mode, fullscreen and source-viewer previews. Text, links, muted text and inline code derive colors with at least 4.5:1 contrast across the 124 shipped themes.
|
|
228
|
+
|
|
229
|
+
Fenced code blocks with a supported language, such as JSON, use Shiki syntax highlighting. Token colors follow the active theme and remain readable against the code surface. Blocks without a language or with an unsupported language remain readable plain text; very large blocks may also remain plain text to keep the reader responsive. Copy and download keep the original Markdown.
|
|
230
|
+
|
|
225
231
|
Complete reference of CLI options, configuration keys, and runtime features.
|
|
226
232
|
|
|
227
233
|
## Command line
|
|
@@ -744,6 +750,8 @@ The \`/ai\` console and the chat drawer gate access behind a local password that
|
|
|
744
750
|
`,
|
|
745
751
|
themes: `# Themes and Layouts
|
|
746
752
|
|
|
753
|
+
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.
|
|
754
|
+
|
|
747
755
|
Themes are JSON templates mapped by \`layoutsConfig.json\`.
|
|
748
756
|
|
|
749
757
|
## Strategy options
|
|
@@ -981,6 +989,10 @@ Site display settings are in \`gitpagedocs/config.json\`. The interactive genera
|
|
|
981
989
|
`,
|
|
982
990
|
navigation: `# Navigation and nested menus
|
|
983
991
|
|
|
992
|
+
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.
|
|
993
|
+
|
|
994
|
+
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.
|
|
995
|
+
|
|
984
996
|
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
997
|
|
|
986
998
|
\`\`\`json
|
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.20/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.18/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.20/en/gitpagedocs-project-guide.pdf",
|
|
61
|
+
"pt": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"es": "gitpagedocs/docs/versions/0.0.20/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,12 @@ 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
|
+
Markdown usa una superficie de lectura consistente con la tarjeta que lo rodea en la documentación, el modo foco, la pantalla completa y las vistas previas del código. 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
|
+
|
|
228
|
+
Los bloques de código cercados con un lenguaje compatible, como JSON, usan resaltado de sintaxis con Shiki. Los colores de los tokens siguen el tema activo y se mantienen legibles sobre la superficie del código. Los bloques sin lenguaje o con un lenguaje no compatible permanecen como texto simple legible; los bloques muy grandes también pueden conservar el texto simple para mantener la lectura fluida. Copiar y descargar conservan el Markdown original.
|
|
229
|
+
|
|
224
230
|
Referencia completa de opciones CLI, claves de configuración y funciones del runtime.
|
|
225
231
|
|
|
226
232
|
## Línea de comandos
|
|
@@ -697,6 +703,8 @@ Adaptadores soportados:
|
|
|
697
703
|
`,
|
|
698
704
|
themes: `# Temas y layouts
|
|
699
705
|
|
|
706
|
+
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.
|
|
707
|
+
|
|
700
708
|
Los temas son templates JSON mapeados por \`layoutsConfig.json\`.
|
|
701
709
|
|
|
702
710
|
## Archivos
|
|
@@ -934,6 +942,10 @@ Las opciones visuales están en \`gitpagedocs/config.json\`. El generador intera
|
|
|
934
942
|
`,
|
|
935
943
|
navigation: `# Navegación y submenús
|
|
936
944
|
|
|
945
|
+
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.
|
|
946
|
+
|
|
947
|
+
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.
|
|
948
|
+
|
|
937
949
|
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
950
|
|
|
939
951
|
\`\`\`json
|
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.20/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.18/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.20/en/gitpagedocs-project-guide.pdf",
|
|
61
|
+
"pt": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf",
|
|
62
|
+
"es": "gitpagedocs/docs/versions/0.0.20/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,12 @@ 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 usa uma superfície de leitura consistente com o cartão ao redor na documentação, no modo foco, em tela cheia e nas prévias do visualizador de código. 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
|
+
|
|
228
|
+
Blocos de código cercados com uma linguagem suportada, como JSON, usam realce de sintaxe com Shiki. As cores dos tokens seguem o tema ativo e permanecem legíveis sobre a superfície do código. Blocos sem linguagem ou com uma linguagem não suportada continuam como texto simples legível; blocos muito grandes também podem permanecer em texto simples para manter a leitura responsiva. Copiar e baixar preservam o Markdown original.
|
|
229
|
+
|
|
224
230
|
Referência completa de opções da CLI, chaves de configuração e recursos do runtime.
|
|
225
231
|
|
|
226
232
|
## Linha de comando
|
|
@@ -697,6 +703,8 @@ Adaptadores suportados:
|
|
|
697
703
|
`,
|
|
698
704
|
themes: `# Temas e layouts
|
|
699
705
|
|
|
706
|
+
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.
|
|
707
|
+
|
|
700
708
|
Temas são templates JSON mapeados por \`layoutsConfig.json\`.
|
|
701
709
|
|
|
702
710
|
## Arquivos
|
|
@@ -934,6 +942,10 @@ As opções visuais ficam em \`gitpagedocs/config.json\`. O gerador interativo/c
|
|
|
934
942
|
`,
|
|
935
943
|
navigation: `# Navegação e submenus
|
|
936
944
|
|
|
945
|
+
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.
|
|
946
|
+
|
|
947
|
+
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.
|
|
948
|
+
|
|
937
949
|
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
950
|
|
|
939
951
|
\`\`\`json
|
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.20/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.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
|
|
38
|
+
The scaffold includes versions 0.0.20, 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 twelve contain the current examples; the package version is 0.0.20. 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.20 --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.20/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.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
|
|
38
|
+
El scaffold incluye las versiones 0.0.20, 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 doce contienen los ejemplos actuales; la versión del paquete es 0.0.20. 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.20 --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.20/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.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
|
|
38
|
+
O scaffold inclui as versões 0.0.20, 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 doze contêm os exemplos atuais; a versão do pacote é 0.0.20. 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.20 --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.20";
|
|
2
2
|
|
|
3
|
-
export const DOC_VERSIONS = [PACKAGE_VERSION, "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"];
|
|
3
|
+
export const DOC_VERSIONS = [PACKAGE_VERSION, "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", "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.20",
|
|
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.20",
|
|
33
|
+
"@gitpagedocs/tools": "^0.0.20",
|
|
34
34
|
"tsx": "^4.21.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|