@gitpagedocs/tools 0.0.12 → 0.0.13
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.13",
|
|
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 32 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.12, 0.0.11 and 0.0.
|
|
42
|
+
"The scaffold registers documentation versions 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.13. 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
|
"",
|
|
@@ -49,6 +49,9 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
49
49
|
"`site.nestedMenusEnabled` selects recursive or flat navigation. Breadcrumbs use `RouteGuide` with route > version defaults > site precedence. `site.FocusMode` enables reading mode; `site.focusMode` controls copy, download, section navigation and document navigation independently.",
|
|
50
50
|
"",
|
|
51
51
|
"Focus mode provides eight navigation buttons: first, previous, next and last document, plus first, previous, next and last section. Each navigation flag controls its group of four; document changes keep the reader open and restart at the first section.",
|
|
52
|
+
"Focus narration reads only the displayed section. Section/document changes and entering/leaving focus stop the previous speech; a new reading uses the visible content while retaining voice, speed and volume preferences. With `sectionNavigationEnabled: false`, the whole document is visible and narratable. Source copy/download still covers the complete document.",
|
|
53
|
+
"",
|
|
54
|
+
"Documentation pages and the introduction guide use `site.backToTop: { enabled: true, minPageHeightViewports: 3 }` for their back-to-top arrow. It is available only on a scrollable page at least three viewport heights tall. Set `enabled: false` to hide it; the threshold accepts a finite number greater than 1 and otherwise defaults to 3.",
|
|
52
55
|
"",
|
|
53
56
|
"Document-footer controls use `DocumentPrevious` (`LuChevronLeft`) and `DocumentNext` (`LuChevronRight`); either can use its translated text with `reactIcon: false`. The footer appears for multiple available menu destinations and disables unavailable directions. `site.ActiveNavigation` controls quick navigation and Ctrl+K separately.",
|
|
54
57
|
"",
|
|
@@ -72,7 +75,7 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
72
75
|
"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.",
|
|
73
76
|
"",
|
|
74
77
|
"```json",
|
|
75
|
-
'{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.
|
|
78
|
+
'{ "id": 23, "pdf": { "pathPdf": { "en": "gitpagedocs/docs/versions/0.0.13/en/gitpagedocs-project-guide.pdf", "pt": "gitpagedocs/docs/versions/0.0.13/en/gitpagedocs-project-guide.pdf", "es": "gitpagedocs/docs/versions/0.0.13/en/gitpagedocs-project-guide.pdf" }, "previewEnabled": true, "downloadEnabled": true, "openInNewTabEnabled": true } }',
|
|
76
79
|
"```",
|
|
77
80
|
"",
|
|
78
81
|
"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.",
|
|
@@ -102,13 +105,13 @@ export function cliCommandsSection(commands: readonly CommandDoc[]): string {
|
|
|
102
105
|
' "title": { "en": "DOOM: HTML example", "pt": "DOOM: exemplo HTML", "es": "DOOM: ejemplo HTML" },',
|
|
103
106
|
' "description": { "en": "Load an interactive HTML demo", "pt": "Carregue uma demonstração HTML interativa", "es": "Carga una demostración HTML interactiva" },',
|
|
104
107
|
' "titleIsVisible": true, "descriptionIsVisible": true, "container": "full",',
|
|
105
|
-
' "path": { "en": "gitpagedocs/docs/versions/0.0.
|
|
108
|
+
' "path": { "en": "gitpagedocs/docs/versions/0.0.13/en/doom.html", "pt": "gitpagedocs/docs/versions/0.0.13/pt/doom.html", "es": "gitpagedocs/docs/versions/0.0.13/es/doom.html" }',
|
|
106
109
|
" }],",
|
|
107
110
|
' "menus-header-html": [{',
|
|
108
111
|
' "id": 29,',
|
|
109
|
-
' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
110
|
-
' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
111
|
-
' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.
|
|
112
|
+
' "en": { "title": "DOOM: HTML example", "path-click": "gitpagedocs/docs/versions/0.0.13/en/doom.html" },',
|
|
113
|
+
' "pt": { "title": "DOOM: exemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.13/pt/doom.html" },',
|
|
114
|
+
' "es": { "title": "DOOM: ejemplo HTML", "path-click": "gitpagedocs/docs/versions/0.0.13/es/doom.html" }',
|
|
112
115
|
" }]",
|
|
113
116
|
"}",
|
|
114
117
|
"```",
|