@veluai/velu 0.2.35 → 0.2.37

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.
Files changed (59) hide show
  1. package/README.md +56 -0
  2. package/dist/cli.js +129 -54
  3. package/docs/mintlify-migration.md +159 -0
  4. package/docs/vepa.md +96 -0
  5. package/package.json +8 -2
  6. package/runtime/velu-ui/components/Accordion.jsx +3 -3
  7. package/runtime/velu-ui/components/ApiClient.jsx +4 -2
  8. package/runtime/velu-ui/components/ApiReferencePage.jsx +23 -15
  9. package/runtime/velu-ui/components/ApiSamples.jsx +9 -4
  10. package/runtime/velu-ui/components/AskBar.jsx +3 -2
  11. package/runtime/velu-ui/components/Callout.jsx +11 -26
  12. package/runtime/velu-ui/components/Card.jsx +16 -12
  13. package/runtime/velu-ui/components/ChangelogFilters.jsx +2 -1
  14. package/runtime/velu-ui/components/Chatbot.jsx +20 -9
  15. package/runtime/velu-ui/components/CodeBlock.jsx +7 -6
  16. package/runtime/velu-ui/components/Columns.jsx +2 -0
  17. package/runtime/velu-ui/components/ContextMenu.jsx +3 -2
  18. package/runtime/velu-ui/components/Field.jsx +2 -2
  19. package/runtime/velu-ui/components/Icon.jsx +1 -0
  20. package/runtime/velu-ui/components/Image.jsx +2 -2
  21. package/runtime/velu-ui/components/MethodBadge.jsx +2 -2
  22. package/runtime/velu-ui/components/NavSelect.jsx +22 -4
  23. package/runtime/velu-ui/components/NotFound.jsx +7 -7
  24. package/runtime/velu-ui/components/PageFeedback.jsx +13 -3
  25. package/runtime/velu-ui/components/PageFooter.jsx +3 -0
  26. package/runtime/velu-ui/components/PageHeader.jsx +37 -15
  27. package/runtime/velu-ui/components/PageNav.jsx +2 -1
  28. package/runtime/velu-ui/components/Prompt.jsx +2 -2
  29. package/runtime/velu-ui/components/Search.jsx +1 -0
  30. package/runtime/velu-ui/components/Sidebar.jsx +18 -6
  31. package/runtime/velu-ui/components/Steps.jsx +4 -4
  32. package/runtime/velu-ui/components/ThemePreferenceMenu.jsx +57 -0
  33. package/runtime/velu-ui/components/ThemeToggle.jsx +4 -1
  34. package/runtime/velu-ui/components/Toc.jsx +6 -4
  35. package/runtime/velu-ui/components/Tree.jsx +6 -5
  36. package/runtime/velu-ui/components/TryItBar.jsx +1 -0
  37. package/runtime/velu-ui/components/Update.jsx +2 -2
  38. package/runtime/velu-ui/components/VepaFooter.jsx +40 -0
  39. package/runtime/velu-ui/components/callout.css +28 -0
  40. package/runtime/velu-ui/components/card.css +9 -0
  41. package/runtime/velu-ui/components/chatbot.css +42 -0
  42. package/runtime/velu-ui/components/docs-layout.css +80 -0
  43. package/runtime/velu-ui/components/page-header.css +6 -0
  44. package/runtime/velu-ui/components/sidebar.css +5 -5
  45. package/runtime/velu-ui/element-selectors.css +66 -0
  46. package/runtime/velu-ui/primitives/Cluster.jsx +12 -0
  47. package/runtime/velu-ui/primitives/Stack.jsx +12 -0
  48. package/runtime/velu-ui/primitives/Switcher.jsx +11 -1
  49. package/runtime/velu-ui/styles.css +52 -35
  50. package/runtime/velu-ui/themes/vepa.css +264 -0
  51. package/schema/velu.schema.json +5 -0
  52. package/src/navigation.js +3 -2
  53. package/src/runtime/App.jsx +144 -52
  54. package/src/runtime/VepaToc.jsx +12 -0
  55. package/src/runtime/client-entry.jsx +23 -0
  56. package/src/runtime/dev-warnings.js +16 -0
  57. package/src/runtime/page-mode.js +54 -0
  58. package/src/runtime/server-entry.jsx +1 -0
  59. package/templates/starter/essentials/settings.mdx +15 -0
package/README.md CHANGED
@@ -21,6 +21,7 @@ reloads the browser automatically.
21
21
  | Command | What it does |
22
22
  | --- | --- |
23
23
  | `velu init <dir>` | Scaffold a new docs project into `<dir>` (creates `velu.json`, a favicon, and a set of starter `.mdx` pages). |
24
+ | `velu migrate mintlify [dir]` | Migrate Mintlify docs into a new directory; supports `--out`, `--dry-run`, `--strict`, and `--json`. |
24
25
  | `velu dev [dir]` | Start the live-preview dev server for the project in `<dir>` (defaults to the current directory). |
25
26
 
26
27
  Set a custom port with the `PORT` env var:
@@ -29,6 +30,22 @@ Set a custom port with the `PORT` env var:
29
30
  PORT=5180 velu dev my-docs
30
31
  ```
31
32
 
33
+ ## Migrate from Mintlify
34
+
35
+ ```bash
36
+ velu migrate mintlify ./mintlify-docs --out ./velu-docs --dry-run
37
+ velu migrate mintlify ./mintlify-docs --out ./velu-docs
38
+ ```
39
+
40
+ The source stays untouched. Configuration, MDX, snippets, custom CSS/JavaScript,
41
+ assets, and supported npm scripts are migrated, with JSON and Markdown reports
42
+ for anything requiring review. See the [migration guide](docs/mintlify-migration.md)
43
+ for coverage, exit codes, and runtime limitations.
44
+
45
+ Set `"theme": "vepa"` in `velu.json` for the Vepa preset. Migration
46
+ maps Mintlify’s `sequoia` setting to `vepa` automatically. See [Vepa compatibility](docs/vepa.md)
47
+ for the pinned Mintlify reference, verified geometry, and remaining parity limits.
48
+
32
49
  ## Project layout
33
50
 
34
51
  `velu init` produces a project shaped like this:
@@ -75,6 +92,45 @@ my-docs/
75
92
 
76
93
  Page labels come from each page's frontmatter `title`.
77
94
 
95
+ ## Custom CSS and JavaScript
96
+
97
+ Every `.css` and `.js` file in the project folder (at any depth) is included on
98
+ every page — nothing to configure. CSS is linked after the theme so your rules
99
+ win; JS runs once per page load, after the page has hydrated. Dot-folders,
100
+ `node_modules/`, `public/` and the build output are skipped.
101
+
102
+ MDX also supports Tailwind utility classes on HTML elements
103
+ (`className="w-full rounded-xl"`, `dark:hidden`, …) — they are scanned from the
104
+ project and generated into the theme stylesheet.
105
+
106
+ Selectors follow Mintlify's, so Mintlify custom CSS ports over:
107
+
108
+ - **Ids** on the layout — `#navbar`, `#sidebar`, `#sidebar-content`, `#content`,
109
+ `#content-area`, `#table-of-contents`, `#pagination`, `#footer`,
110
+ `#search-bar-entry`, `#search-input`, `#assistant-entry`, `#topbar-cta-button`,
111
+ `#page-context-menu`, `#chat-assistant-sheet`, `#feedback-*`, `#request-example`,
112
+ `#response-example`, `#changelog-filters`, `#localization-select-*`, …
113
+ - **Element selectors** — components render as the same tags Mintlify uses, so
114
+ `card { }`, `callout { }`, `code-block { }`, `steps { }`, `toc-item { }`,
115
+ `sidebar-group { }`, `mdx-content { }` … work as-is. Roots that must stay native
116
+ HTML (`<a>`, `<button>`, `<details>`…) carry `data-component` instead:
117
+ `[data-component="accordion"]`, `[data-component="nav-tabs-item"]`.
118
+ - **State** — `html[data-theme="dark"]`, `html[data-current-path="/quickstart"]`,
119
+ and `[data-active]` on the active sidebar link, header tab, TOC item and
120
+ dropdown item.
121
+
122
+ ```css
123
+ /* style.css */
124
+ #navbar { background: #fffff2; }
125
+ card { border-radius: 0; }
126
+ html[data-theme="dark"] callout { border-color: #444; }
127
+ ```
128
+
129
+ ```js
130
+ // analytics.js
131
+ window.dataLayer = window.dataLayer || [];
132
+ ```
133
+
78
134
  ## License
79
135
 
80
136
  Proprietary. © Velu.