@mintlify/cli 4.0.1808 → 4.0.1809

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.
@@ -83,7 +83,7 @@ Never paraphrase, summarize or reword. Every word on a page comes from the PDF.
83
83
 
84
84
  - Extract embedded images per page: `pdfimages -png -f N -l N file.pdf images/<page-path>/fig` (use `-all` to keep original formats).
85
85
  - Vector diagrams are not images: crop the region from a high-DPI render (`page.get_pixmap(clip=rect, dpi=200)`).
86
- - Alt text comes from the figure caption, verbatim. No caption means alt text from the nearest heading plus "figure"; record it in the report. Keep the caption under the image.
86
+ - Alt text comes from the figure caption, verbatim. No caption means alt text from the nearest heading plus "figure"; record it in the report. Put the caption in `<Frame caption>`.
87
87
  - Drop decorative images (logos repeated on every page, rules, backgrounds).
88
88
 
89
89
  ## URLs and redirects
@@ -77,7 +77,7 @@ Export every maintained version. Hidden and unpublished pages are only in the re
77
77
  | `[title](url "@embed")`, `<Embed>` | video embed if supported, else a link |
78
78
  | `[block:callout]` | callout by its theme |
79
79
  | `[block:code]` | fences, or `<CodeGroup>` for several |
80
- | `[block:image]` | image with caption |
80
+ | `[block:image]` | image in `<Frame caption>` |
81
81
  | `[block:parameters]` / `[block:table]` | markdown table built from the `data` keys |
82
82
  | `[block:api-header]` | heading |
83
83
  | `[block:html]` | the HTML, made MDX-safe |
@@ -128,7 +128,15 @@ Download every image and linked file into the repo (for example `images/<page-pa
128
128
 
129
129
  Exports and scraped pages often reference images by hosted URL without shipping the files. Collect every hosted asset URL from page bodies and embedded JSON blocks, download the original file (not a resized proxy), and rewrite the references. Keep alt text. If an image URL contains parentheses or spaces, use `<img src="/images/a (1).png" alt="..." />` instead of `![]()`, which breaks on them. macOS screenshot filenames put U+202F (narrow no-break space) before `AM`/`PM`, which the link checker does not match to a regular space: replace it with a space in both the filename and every reference (find them with `rg -l $'\u202f'`). Report any asset you could not download.
130
130
 
131
- Reference: https://www.mintlify.com/docs/create/image-embeds.md
131
+ Wrap every standalone image (screenshots, diagrams, figures) in `<Frame>`. Sources never use this wrapper, so the transformer has to add it. A source caption goes in `caption`, verbatim; with no caption, use a bare `<Frame>`. Leave inline images unwrapped: icons, badges and logos inside a sentence, link, table cell or heading.
132
+
133
+ ```mdx
134
+ <Frame caption="Caption from the source">
135
+ ![Alt text from the source](/images/page-path/screenshot.png)
136
+ </Frame>
137
+ ```
138
+
139
+ Reference: https://www.mintlify.com/docs/create/image-embeds.md, https://www.mintlify.com/docs/components/frames.md
132
140
 
133
141
  ## Port artifacts
134
142
 
@@ -34,6 +34,7 @@ Every internal link must resolve. A broken link usually means a missed rewrite (
34
34
  - Pages with an empty body or only a heading.
35
35
  - Leftover source syntax: `:::`, `{% `, `{{< `, `.. directive::`, raw `<div class=`.
36
36
  - Images that 404: every `src` under `/images/` (or wherever you put assets) exists on disk.
37
+ - Standalone images outside `<Frame>`: every block-level `![...](...)` or `<img />` is wrapped (`mint migrate --topic conversion`, Images and files).
37
38
  - Read 10 to 20 pages against the source, including index pages, the longest page, and pages with tabs, steps or tables. Every section, list item, table row and code block should be present.
38
39
 
39
40
  ## 4. Structure
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1808",
3
+ "version": "4.0.1809",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -45,12 +45,12 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@inquirer/prompts": "7.9.0",
48
- "@mintlify/common": "1.0.1345",
49
- "@mintlify/link-rot": "3.0.1586",
48
+ "@mintlify/common": "1.0.1346",
49
+ "@mintlify/link-rot": "3.0.1587",
50
50
  "@mintlify/models": "0.0.389",
51
- "@mintlify/og": "0.0.144",
52
- "@mintlify/prebuild": "1.0.1518",
53
- "@mintlify/previewing": "4.0.1604",
51
+ "@mintlify/og": "0.0.145",
52
+ "@mintlify/prebuild": "1.0.1519",
53
+ "@mintlify/previewing": "4.0.1605",
54
54
  "@mintlify/validation": "0.1.962",
55
55
  "adm-zip": "0.6.0",
56
56
  "chalk": "5.2.0",
@@ -87,7 +87,7 @@
87
87
  "keytar": "7.9.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@mintlify/editor": "0.0.623",
90
+ "@mintlify/editor": "0.0.624",
91
91
  "@mintlify/ts-config": "2.0.2",
92
92
  "@tsconfig/recommended": "1.0.2",
93
93
  "@types/detect-port": "1.3.2",
@@ -106,5 +106,5 @@
106
106
  "vitest": "2.1.9",
107
107
  "vitest-mock-process": "1.0.4"
108
108
  },
109
- "gitHead": "f0de0466d5c6b7a0cd10579318ee0aeddfe81ac1"
109
+ "gitHead": "4f30842f73be4026c9cebd89e5887928d92b8143"
110
110
  }