@gitpagedocs/tools 0.0.22 → 0.0.24
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitpagedocs/tools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared business-logic core for Git Page Docs (consumed by frontend, cli and mcp). Ships TypeScript source; consume via tsx or a TS-aware bundler.",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -39,7 +39,7 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
39
39
|
"### User references",
|
|
40
40
|
"",
|
|
41
41
|
"The generated documentation includes 37 Markdown pages per language: focused references plus complete configuration recipes, migration/compatibility, troubleshooting, contributing/testing, document-guide configuration, narrow/foldable layouts and HTML-container guides. All pages are available in English, Portuguese and Spanish; Markdown filenames stay in English while titles and content preserve UTF-8 accents and special characters.",
|
|
42
|
-
"The scaffold registers documentation versions 0.0.22, 0.0.21, 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 descending order with the current examples; the npm package version is 0.0.
|
|
42
|
+
"The scaffold registers documentation versions 0.0.24, 0.0.23, 0.0.22, 0.0.21, 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 descending order with the current examples; the npm package version is 0.0.24. Paths and version badges match each generated documentation version. Existing older version folders are preserved.",
|
|
43
43
|
"",
|
|
44
44
|
"The scaffold has real nested sections: Guides → Configure your site / Read and explore / Automate and integrate → documents, plus Operations and development and Git/GitHub groups. Getting Started and Project overview remain the first destinations. Every parent section has its own localized Markdown overview: click its title to read it, or use the separate arrow to expand children. Breadcrumb ancestors such as Guides → Configure your site remain navigable. Recursive `submenus` can extend the hierarchy without a fixed depth limit; `site.nestedMenusEnabled: false` keeps every destination in a flat presentation.",
|
|
45
45
|
"With the navigation padlock unlocked, Previous and Next center the current destination inside the desktop sidebar or mobile drawer, within its scroll range. Opening, unlocking or resizing the menu also centers it. Manual scrolling is preserved between page changes; a locked menu preserves its position. Theme and language icon buttons fill mobile-menu rows with centered icons; desktop-header controls remain compact. The responsive-layout reference covers widths of 280, 320, 344, 390 and 768 CSS pixels and folding/orientation checks.",
|
|
@@ -75,7 +75,7 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
75
75
|
"The catalog contains 124 themes: 64 original themes, 20 standalone animated backgrounds and 20 additional parallax families with dark and light variants (40 entries). Earlier themes retain their palettes and components. Particles use the native Web Animations API and layers use Motion parallax. Try `aurora-borealis-dark`/`aurora-borealis-light`, `firefly-grove-dark`/`firefly-grove-light`, or `ocean-depths-dark`/`ocean-depths-light`; the existing light/dark control switches within each pair. Each pair shares `supportsLightAndDarkModesReference` in the catalog. All themes are available through the official catalog and local `--layoutconfig` generation. See [the complete catalog](gitpagelayouts/README.md) and the generated Themes and layouts guide in English, Portuguese and Spanish.",
|
|
76
76
|
"",
|
|
77
77
|
"Customize `site.backgroundEffects` in `gitpagedocs/config.json`: `enabled: false` disables every background; `overrides` applies common settings; `themes[themeId]` applies theme-specific settings. Templates provide optional top-level `backgroundEffects`. Precedence is template → global overrides → per-theme overrides, while `layers` replaces the complete array. Adjust layer counts/colors, animation speed and pointer/scroll parallax without editing JavaScript. Reduced-motion preferences and a visitor pause control are supported; every new preset retains both protections.",
|
|
78
|
-
"`backgroundEffects.performance.mode` accepts `auto` or `full` through the same override hierarchy. Presets use `auto`:
|
|
78
|
+
"`backgroundEffects.performance.mode` accepts `auto` or `full` through the same override hierarchy. Presets use `auto`: one of every two particles per layer remains visible at widths of at least 768 CSS pixels, or one of every four below that width; the first is retained. `full` displays every configured particle. Explicit custom `layers` without a performance mode retain their counts with `full`; opt into `auto` to adapt them. Omitted particles stay mounted, hidden and paused for phase-preserving resizing. Colors, geometry, trajectories, blur/glow, speed and seed stay unchanged. Pointer, scroll and resize events share at most one pending animation-frame update for parallax; idle input does not start a polling loop.",
|
|
79
79
|
"Pause/resume sits beside the navigation lock in the documentation menu (expanded, collapsed and mobile), or in the search-page header. A manual pause survives menu and theme changes until Resume is selected. `site.backgroundEffects.overrides.accessibility.showPauseButton` defaults to `true`; `false` hides only the control. Configure `site.icons.BackgroundAnimationPause` (`FiPause`) and `BackgroundAnimationResume` (`FiPlay`) with `reactIcon`, `tag`, `size`, `colorDark` and `colorLight`. Defaults are icons, 22px and `currentColor`; `reactIcon: false` shows localized text. Use the background master switch to disable the effect itself.",
|
|
80
80
|
"",
|
|
81
81
|
"Preset sources live in `gitpagelayouts/v2/layouts/` as `overrides.backgroundEffects`. `pnpm run layouts:sync` expands templates and compiles the same presets into the CLI package; existing themes do not acquire an animation implicitly.",
|
|
@@ -87,7 +87,7 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
87
87
|
"Configure `site.pdf` with `enabled`, `previewEnabled`, `downloadEnabled` and `openInNewTabEnabled` (all default to `true`). The version config uses `routes-pdf`, `pdf.pathPdf` per language and `menus-header-pdf` with `page:23` for the bundled example. Route-level preview/download/new-tab options go inside `pdf`; `hierarchyPage.pdf` and `hierarchyMenu.pdf` order the content and menu sections.",
|
|
88
88
|
"",
|
|
89
89
|
"```json",
|
|
90
|
-
'{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.
|
|
90
|
+
'{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.24/en/gitpagedocs-project-guide.pdf", "pt": "gitpagedocs/docs/versions/0.0.24/en/gitpagedocs-project-guide.pdf", "es": "gitpagedocs/docs/versions/0.0.24/en/gitpagedocs-project-guide.pdf" }, "previewEnabled": true, "downloadEnabled": true, "openInNewTabEnabled": true } }',
|
|
91
91
|
"```",
|
|
92
92
|
"",
|
|
93
93
|
"The native browser viewer handles PDF previews and new tabs through validated `application/pdf` Blob URLs. Preview, download and new-tab actions all require CORS permission for external files. Opening a new tab does not navigate to the raw repository URL, so that server's Content-Type/Content-Disposition does not force a download. Browser PDF support and user preferences still apply. With preview disabled, the first download or new-tab action loads the PDF; cached bytes are reused. File/network errors and blocked pop-ups are reported without silently falling back to the raw URL.",
|
|
@@ -126,13 +126,13 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
126
126
|
' "title": { "en": "DOOM: HTML example", "pt": "DOOM: exemplo HTML", "es": "DOOM: ejemplo HTML" },',
|
|
127
127
|
' "description": { "en": "Load an interactive HTML demo", "pt": "Carregue uma demonstração HTML interativa", "es": "Carga una demostración HTML interactiva" },',
|
|
128
128
|
' "titleIsVisible": true, "descriptionIsVisible": true, "container": "full",',
|
|
129
|
-
' "path": { "en": "gitpagedocs/docs/versions/0.0.
|
|
129
|
+
' "path": { "en": "gitpagedocs/docs/versions/0.0.24/en/doom.html", "pt": "gitpagedocs/docs/versions/0.0.24/pt/doom.html", "es": "gitpagedocs/docs/versions/0.0.24/es/doom.html" }',
|
|
130
130
|
" }],",
|
|
131
131
|
' "menus-header-html": [{',
|
|
132
132
|
' "id": 29,',
|
|
133
|
-
' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
134
|
-
' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
135
|
-
' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
133
|
+
' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.24/en/doom.html" },',
|
|
134
|
+
' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.24/pt/doom.html" },',
|
|
135
|
+
' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.24/es/doom.html" }',
|
|
136
136
|
" }]",
|
|
137
137
|
"}",
|
|
138
138
|
"```",
|