@farming-labs/theme 0.0.9-beta.1 → 0.0.9
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/dist/docs-layout.mjs +52 -48
- package/package.json +2 -2
- package/styles/base.css +3 -1
- package/styles/pixel-border.css +11 -6
package/dist/docs-layout.mjs
CHANGED
|
@@ -452,54 +452,58 @@ function createDocsLayout(config) {
|
|
|
452
452
|
collapsible: sidebarProps.collapsible !== false,
|
|
453
453
|
flat: !!sidebarFlat
|
|
454
454
|
});
|
|
455
|
-
return /* @__PURE__ */
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
/* @__PURE__ */ jsx(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
455
|
+
return /* @__PURE__ */ jsx("div", {
|
|
456
|
+
id: "nd-docs-layout",
|
|
457
|
+
style: { display: "contents" },
|
|
458
|
+
children: /* @__PURE__ */ jsxs(DocsLayout, {
|
|
459
|
+
tree,
|
|
460
|
+
nav: {
|
|
461
|
+
title: navTitle,
|
|
462
|
+
url: navUrl
|
|
463
|
+
},
|
|
464
|
+
themeSwitch,
|
|
465
|
+
sidebar: finalSidebarProps,
|
|
466
|
+
...aiMode === "sidebar-icon" && aiEnabled ? { searchToggle: { components: { lg: /* @__PURE__ */ jsx(SidebarSearchWithAI, {}) } } } : {},
|
|
467
|
+
children: [
|
|
468
|
+
/* @__PURE__ */ jsx(ColorStyle, { colors }),
|
|
469
|
+
/* @__PURE__ */ jsx(TypographyStyle, { typography }),
|
|
470
|
+
/* @__PURE__ */ jsx(LayoutStyle, { layout: layoutDimensions }),
|
|
471
|
+
forcedTheme && /* @__PURE__ */ jsx(ForcedThemeScript, { theme: forcedTheme }),
|
|
472
|
+
!staticExport && /* @__PURE__ */ jsx(DocsCommandSearch, {}),
|
|
473
|
+
aiEnabled && /* @__PURE__ */ jsx(DocsAIFeatures, {
|
|
474
|
+
mode: aiMode,
|
|
475
|
+
position: aiPosition,
|
|
476
|
+
floatingStyle: aiFloatingStyle,
|
|
477
|
+
triggerComponentHtml: aiTriggerComponentHtml,
|
|
478
|
+
suggestedQuestions: aiSuggestedQuestions,
|
|
479
|
+
aiLabel,
|
|
480
|
+
loaderVariant: aiLoaderVariant,
|
|
481
|
+
loadingComponentHtml: aiLoadingComponentHtml,
|
|
482
|
+
models: aiModels,
|
|
483
|
+
defaultModelId: aiDefaultModelId
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ jsx(DocsPageClient, {
|
|
486
|
+
tocEnabled,
|
|
487
|
+
tocStyle,
|
|
488
|
+
breadcrumbEnabled,
|
|
489
|
+
entry: config.entry,
|
|
490
|
+
copyMarkdown: copyMarkdownEnabled,
|
|
491
|
+
openDocs: openDocsEnabled,
|
|
492
|
+
openDocsProviders,
|
|
493
|
+
pageActionsPosition,
|
|
494
|
+
pageActionsAlignment,
|
|
495
|
+
githubUrl,
|
|
496
|
+
githubBranch,
|
|
497
|
+
githubDirectory,
|
|
498
|
+
lastModifiedMap,
|
|
499
|
+
lastUpdatedEnabled,
|
|
500
|
+
lastUpdatedPosition,
|
|
501
|
+
llmsTxtEnabled,
|
|
502
|
+
descriptionMap,
|
|
503
|
+
children
|
|
504
|
+
})
|
|
505
|
+
]
|
|
506
|
+
})
|
|
503
507
|
});
|
|
504
508
|
};
|
|
505
509
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.0.9
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"next": ">=14.0.0",
|
|
104
104
|
"tsdown": "^0.20.3",
|
|
105
105
|
"typescript": "^5.9.3",
|
|
106
|
-
"@farming-labs/docs": "0.0.9
|
|
106
|
+
"@farming-labs/docs": "0.0.9"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@farming-labs/docs": ">=0.0.1",
|
package/styles/base.css
CHANGED
|
@@ -290,7 +290,9 @@ figure.shiki:has(figcaption) figcaption {
|
|
|
290
290
|
border-color 0.15s;
|
|
291
291
|
user-select: none;
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
.fd-ai-fm-msg-content .fd-ai-code-block pre {
|
|
294
|
+
padding:10px !important;
|
|
295
|
+
}
|
|
294
296
|
.fd-page-action-btn:hover {
|
|
295
297
|
color: var(--color-fd-accent-foreground);
|
|
296
298
|
background: var(--color-fd-accent);
|
package/styles/pixel-border.css
CHANGED
|
@@ -139,14 +139,19 @@ code:not(pre code) {
|
|
|
139
139
|
* ═══════════════════════════════════════════════════════════════════ */
|
|
140
140
|
|
|
141
141
|
/* ─── Wider content area on desktop ──────────────────────────────── */
|
|
142
|
-
/* :root {
|
|
143
|
-
--fd-layout-width: 1400px;
|
|
144
|
-
} */
|
|
145
142
|
|
|
146
|
-
|
|
143
|
+
@media (min-width: 1024px) {
|
|
144
|
+
:root {
|
|
145
|
+
--fd-layout-width: 1400px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ─── Docs grid: sidebar | content | TOC — with gap and constrained TOC ── */
|
|
147
150
|
@media (min-width: 768px) {
|
|
148
|
-
#nd-docs-layout
|
|
149
|
-
|
|
151
|
+
#nd-docs-layout,
|
|
152
|
+
[style*="fd-sidebar-col"] {
|
|
153
|
+
grid-template-columns: var(--fd-sidebar-col, 0px) minmax(0, 1fr) min(var(--fd-toc-width, 260px), 260px) !important;
|
|
154
|
+
gap: 24px !important;
|
|
150
155
|
}
|
|
151
156
|
}
|
|
152
157
|
|