@veluai/velu 0.2.35 → 0.2.36
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/README.md +39 -0
- package/dist/cli.js +57 -49
- package/package.json +1 -1
- package/runtime/velu-ui/components/Accordion.jsx +3 -3
- package/runtime/velu-ui/components/ApiClient.jsx +4 -2
- package/runtime/velu-ui/components/ApiReferencePage.jsx +12 -12
- package/runtime/velu-ui/components/ApiSamples.jsx +2 -2
- package/runtime/velu-ui/components/AskBar.jsx +3 -2
- package/runtime/velu-ui/components/Callout.jsx +11 -26
- package/runtime/velu-ui/components/Card.jsx +9 -8
- package/runtime/velu-ui/components/ChangelogFilters.jsx +2 -1
- package/runtime/velu-ui/components/Chatbot.jsx +11 -5
- package/runtime/velu-ui/components/CodeBlock.jsx +7 -6
- package/runtime/velu-ui/components/Columns.jsx +1 -0
- package/runtime/velu-ui/components/ContextMenu.jsx +3 -2
- package/runtime/velu-ui/components/Field.jsx +2 -2
- package/runtime/velu-ui/components/Icon.jsx +1 -0
- package/runtime/velu-ui/components/Image.jsx +2 -2
- package/runtime/velu-ui/components/MethodBadge.jsx +2 -2
- package/runtime/velu-ui/components/NavSelect.jsx +22 -4
- package/runtime/velu-ui/components/NotFound.jsx +7 -7
- package/runtime/velu-ui/components/PageFeedback.jsx +13 -3
- package/runtime/velu-ui/components/PageHeader.jsx +24 -9
- package/runtime/velu-ui/components/PageNav.jsx +2 -1
- package/runtime/velu-ui/components/Prompt.jsx +2 -2
- package/runtime/velu-ui/components/Search.jsx +1 -0
- package/runtime/velu-ui/components/Sidebar.jsx +18 -6
- package/runtime/velu-ui/components/Steps.jsx +4 -4
- package/runtime/velu-ui/components/ThemeToggle.jsx +1 -0
- package/runtime/velu-ui/components/Toc.jsx +6 -4
- package/runtime/velu-ui/components/Tree.jsx +6 -5
- package/runtime/velu-ui/components/TryItBar.jsx +1 -0
- package/runtime/velu-ui/components/Update.jsx +2 -2
- package/runtime/velu-ui/components/callout.css +28 -0
- package/runtime/velu-ui/components/docs-layout.css +5 -0
- package/runtime/velu-ui/components/sidebar.css +5 -5
- package/runtime/velu-ui/element-selectors.css +66 -0
- package/runtime/velu-ui/primitives/Cluster.jsx +12 -0
- package/runtime/velu-ui/primitives/Stack.jsx +12 -0
- package/runtime/velu-ui/primitives/Switcher.jsx +11 -1
- package/runtime/velu-ui/styles.css +51 -35
- package/src/runtime/App.jsx +43 -11
- package/src/runtime/client-entry.jsx +23 -0
- package/src/runtime/dev-warnings.js +16 -0
- package/src/runtime/server-entry.jsx +1 -0
package/README.md
CHANGED
|
@@ -75,6 +75,45 @@ my-docs/
|
|
|
75
75
|
|
|
76
76
|
Page labels come from each page's frontmatter `title`.
|
|
77
77
|
|
|
78
|
+
## Custom CSS and JavaScript
|
|
79
|
+
|
|
80
|
+
Every `.css` and `.js` file in the project folder (at any depth) is included on
|
|
81
|
+
every page — nothing to configure. CSS is linked after the theme so your rules
|
|
82
|
+
win; JS runs once per page load, after the page has hydrated. Dot-folders,
|
|
83
|
+
`node_modules/`, `public/` and the build output are skipped.
|
|
84
|
+
|
|
85
|
+
MDX also supports Tailwind utility classes on HTML elements
|
|
86
|
+
(`className="w-full rounded-xl"`, `dark:hidden`, …) — they are scanned from the
|
|
87
|
+
project and generated into the theme stylesheet.
|
|
88
|
+
|
|
89
|
+
Selectors follow Mintlify's, so Mintlify custom CSS ports over:
|
|
90
|
+
|
|
91
|
+
- **Ids** on the layout — `#navbar`, `#sidebar`, `#sidebar-content`, `#content`,
|
|
92
|
+
`#content-area`, `#table-of-contents`, `#pagination`, `#footer`,
|
|
93
|
+
`#search-bar-entry`, `#search-input`, `#assistant-entry`, `#topbar-cta-button`,
|
|
94
|
+
`#page-context-menu`, `#chat-assistant-sheet`, `#feedback-*`, `#request-example`,
|
|
95
|
+
`#response-example`, `#changelog-filters`, `#localization-select-*`, …
|
|
96
|
+
- **Element selectors** — components render as the same tags Mintlify uses, so
|
|
97
|
+
`card { }`, `callout { }`, `code-block { }`, `steps { }`, `toc-item { }`,
|
|
98
|
+
`sidebar-group { }`, `mdx-content { }` … work as-is. Roots that must stay native
|
|
99
|
+
HTML (`<a>`, `<button>`, `<details>`…) carry `data-component` instead:
|
|
100
|
+
`[data-component="accordion"]`, `[data-component="nav-tabs-item"]`.
|
|
101
|
+
- **State** — `html[data-theme="dark"]`, `html[data-current-path="/quickstart"]`,
|
|
102
|
+
and `[data-active]` on the active sidebar link, header tab, TOC item and
|
|
103
|
+
dropdown item.
|
|
104
|
+
|
|
105
|
+
```css
|
|
106
|
+
/* style.css */
|
|
107
|
+
#navbar { background: #fffff2; }
|
|
108
|
+
card { border-radius: 0; }
|
|
109
|
+
html[data-theme="dark"] callout { border-color: #444; }
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```js
|
|
113
|
+
// analytics.js
|
|
114
|
+
window.dataLayer = window.dataLayer || [];
|
|
115
|
+
```
|
|
116
|
+
|
|
78
117
|
## License
|
|
79
118
|
|
|
80
119
|
Proprietary. © Velu.
|