@gitpagedocs/tools 0.0.19 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitpagedocs/tools",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
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,13 +39,15 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
39
39
  "### User references",
40
40
  "",
41
41
  "The generated documentation includes 35 Markdown pages per language: focused references plus complete configuration recipes, migration/compatibility, troubleshooting, contributing/testing 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.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.19. Paths and version badges match each generated documentation version. Existing older version folders are preserved.",
42
+ "The scaffold 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 in descending order with the current examples; the npm package version is 0.0.20. 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, the desktop menu scrolls internally to reveal the current destination when moving forward or backward, opening the menu or unlocking it. A locked menu preserves its scroll position. Theme and language icon buttons fill mobile-menu rows with centered icons; desktop-header controls remain compact.",
46
46
  "Repository search carries the selected theme and light/dark mode to the destination documentation when its catalog contains that theme. Otherwise the destination's configured default theme and mode apply.",
47
47
  "Markdown supports GitHub-flavored tables, task lists, strikethrough and autolinks. Rendered HTML is sanitized before display to remove scripts, unsafe link schemes and executable attributes. Tables and code blocks scroll inside narrow containers; text, links, borders and surfaces use the selected theme.",
48
- "Documentation Markdown and source-viewer previews use solid card backgrounds. Their text, links, muted text and inline code derive colors with at least 4.5:1 contrast across the 124 shipped themes.",
48
+ "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.",
49
+ "",
50
+ "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.",
49
51
  "",
50
52
  "Configure controls through `gitpagedocs/config.json` → `site.icons`. `LanguageSelector`, `ThemeSelector`, `VersionSelector`, `FocusMode`, `QuickNavigation`, `PdfDownload`, `PdfOpenInNewTab`, `DocumentPrevious` and `DocumentNext` use icons by default. Set `reactIcon: false` independently to display text; `true` displays the icon. Customize `tag`, `size`, `colorDark` and `colorLight` per entry. Compact configs inherit omitted values from `icons.defaults`, so an omitted per-control `reactIcon` does not mean text mode. The Ctrl+K shortcut and accessible control names remain available.",
51
53
  "`VersionSelector` uses `LuGitBranch` by default; `reactIcon: false` displays the selected version as text. It appears only when more than one documentation version is available, retains the selector's localized accessible name and shows the selected version in its tooltip.",
@@ -83,7 +85,7 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
83
85
  "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.",
84
86
  "",
85
87
  "```json",
86
- '{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf", "pt": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf", "es": "gitpagedocs/docs/versions/0.0.19/en/gitpagedocs-project-guide.pdf" }, "previewEnabled": true, "downloadEnabled": true, "openInNewTabEnabled": true } }',
88
+ '{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf", "pt": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf", "es": "gitpagedocs/docs/versions/0.0.20/en/gitpagedocs-project-guide.pdf" }, "previewEnabled": true, "downloadEnabled": true, "openInNewTabEnabled": true } }',
87
89
  "```",
88
90
  "",
89
91
  "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.",
@@ -121,13 +123,13 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
121
123
  ' "title": { "en": "DOOM: HTML example", "pt": "DOOM: exemplo HTML", "es": "DOOM: ejemplo HTML" },',
122
124
  ' "description": { "en": "Load an interactive HTML demo", "pt": "Carregue uma demonstração HTML interativa", "es": "Carga una demostración HTML interactiva" },',
123
125
  ' "titleIsVisible": true, "descriptionIsVisible": true, "container": "full",',
124
- ' "path": { "en": "gitpagedocs/docs/versions/0.0.19/en/doom.html", "pt": "gitpagedocs/docs/versions/0.0.19/pt/doom.html", "es": "gitpagedocs/docs/versions/0.0.19/es/doom.html" }',
126
+ ' "path": { "en": "gitpagedocs/docs/versions/0.0.20/en/doom.html", "pt": "gitpagedocs/docs/versions/0.0.20/pt/doom.html", "es": "gitpagedocs/docs/versions/0.0.20/es/doom.html" }',
125
127
  " }],",
126
128
  ' "menus-header-html": [{',
127
129
  ' "id": 29,',
128
- ' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.19/en/doom.html" },',
129
- ' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.19/pt/doom.html" },',
130
- ' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.19/es/doom.html" }',
130
+ ' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.20/en/doom.html" },',
131
+ ' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.20/pt/doom.html" },',
132
+ ' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.20/es/doom.html" }',
131
133
  " }]",
132
134
  "}",
133
135
  "```",