@mintlify/cli 4.1.9 → 4.1.11

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.
@@ -0,0 +1,50 @@
1
+ # Custom build
2
+
3
+ A docs site the team built themselves: a Next.js, Gatsby, Astro, Remix or SvelteKit app, hand-written HTML, an in-house CMS, or a generator with no guide of its own. There is no platform config to map, so the code and the rendered site are the only sources of structure.
4
+
5
+ ## Detect
6
+
7
+ - No other source guide matches. A framework dependency alone is not enough: `next` can be Nextra or Fumadocs, `astro` can be Starlight, `nuxt` can be Docus or Nuxt Content. Check those guides' Detect sections first.
8
+ - Content lives in `.md`/`.mdx` files, JSON or YAML data, a headless CMS, pages written as components, or plain `.html` files.
9
+
10
+ ## Get the source
11
+
12
+ ### From the repo
13
+
14
+ - Content: a `content/`, `docs/` or `pages/` folder, data files, CMS fetch calls, or prose inside JSX or HTML. Convert the text of component pages, not their code.
15
+ - Navigation: read the component that renders the sidebar to find what feeds it: a config file (`sidebar.ts`, `nav.json`), a route manifest, front matter such as `order`, or links hard-coded in the JSX. That is the navigation data.
16
+ - URLs: route folders (`app/`, `pages/`, `src/pages/`) and, in `next.config.*`, `vercel.json`, `netlify.toml` or `_redirects`, the `basePath`, `trailingSlash` and `redirects` settings.
17
+
18
+ ### From an export
19
+
20
+ A CMS export (JSON, CSV or Markdown) holds the content but rarely navigation or URLs. Take those from the repo or the live site.
21
+
22
+ ### From the live site
23
+
24
+ Most custom sites have no raw Markdown endpoint: mirror rendered HTML and keep only the main content element. Check for a cleaner payload first: `__NEXT_DATA__` on Next.js Pages Router sites, `/page-data/<path>/page-data.json` on Gatsby.
25
+
26
+ ## Config → docs.json
27
+
28
+ There is no config file. Find each Chrome item from `mint migrate --topic navigation` in the root layout, header and footer components, the `<head>` metadata, and the CSS variables or Tailwind theme.
29
+
30
+ ## Navigation
31
+
32
+ Mirror the navigation data found in the repo. With only the live site, follow `mint migrate --topic navigation`, Reconstructed navigation.
33
+
34
+ ## Content conversion
35
+
36
+ Read each custom component's source and map it by what it renders, not by its name (`mint migrate --topic conversion`, Components). Self-contained components carry over as component snippets; ones bound to the framework or that fetch data at runtime go in the report.
37
+
38
+ ## Assets
39
+
40
+ Copy only files the content references, usually from `public/`, `static/` or `assets/`, at the same paths. Skip app code, styles, fonts and build output. Report CSS that hides or injects content.
41
+
42
+ ## URLs and redirects
43
+
44
+ Take the old URL list from the build output or the live sitemap, not the route files: dynamic routes only become URLs at build time. Port existing redirects and any `basePath` prefix per `mint migrate --topic navigation`, Redirects.
45
+
46
+ ## Known gaps
47
+
48
+ - Custom components with no Mintlify equivalent, and their interactivity.
49
+ - Search, auth, personalization or gated sections built into the app.
50
+ - Content fetched at runtime that the export or mirror did not capture.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.1.9",
3
+ "version": "4.1.11",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -51,21 +51,21 @@
51
51
  "sharp": "0.33.5"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@mintlify/package-builder": "0.0.142",
54
+ "@mintlify/package-builder": "0.0.143",
55
55
  "fsevents": "2.3.3",
56
56
  "keytar": "7.9.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@inquirer/prompts": "7.9.0",
60
- "@mintlify/common": "1.0.1353",
61
- "@mintlify/editor": "0.0.631",
62
- "@mintlify/link-rot": "3.0.1598",
63
- "@mintlify/models": "0.0.391",
64
- "@mintlify/og": "0.0.152",
65
- "@mintlify/prebuild": "1.0.1529",
66
- "@mintlify/previewing": "4.0.1616",
60
+ "@mintlify/common": "1.0.1354",
61
+ "@mintlify/editor": "0.0.632",
62
+ "@mintlify/link-rot": "3.0.1599",
63
+ "@mintlify/models": "0.0.392",
64
+ "@mintlify/og": "0.0.153",
65
+ "@mintlify/prebuild": "1.0.1530",
66
+ "@mintlify/previewing": "4.0.1617",
67
67
  "@mintlify/ts-config": "2.0.2",
68
- "@mintlify/validation": "0.1.966",
68
+ "@mintlify/validation": "0.1.967",
69
69
  "@tsconfig/recommended": "1.0.2",
70
70
  "@types/detect-port": "1.3.2",
71
71
  "@types/keytar": "4.4.2",
@@ -113,5 +113,5 @@
113
113
  "yargs": "17.7.1",
114
114
  "zod": "4.3.6"
115
115
  },
116
- "gitHead": "d0cd3c03d30b85b3dbc68bce038c41064082b2c3"
116
+ "gitHead": "337102ca14d9bbf6f2afa7628e98d8a155d5ec41"
117
117
  }