Skip to content

Commit feac6af

Browse files
committed
.
1 parent 173b506 commit feac6af

10 files changed

Lines changed: 66 additions & 15 deletions

File tree

docs/app/global.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,22 @@
318318
* uses `items-end` to align the visible 268px nav to the right edge.
319319
* So borders on the aside itself land in the wrong place — we target
320320
* its direct child (the actual 268px column) instead. */
321-
#nd-sidebar > *,
321+
#nd-sidebar > * {
322+
border-inline-start: 1px solid var(--color-fd-border);
323+
}
324+
322325
#nd-sidebar-mobile > *,
323326
#nd-toc {
324327
border-inline: 1px solid var(--color-fd-border);
325328
}
326329

330+
/* The seam between sidebar and prose should belong to the main docs
331+
* surface, not the collapsible sidebar rail. That keeps the vertical
332+
* divider visible even when the sidebar is collapsed away. */
333+
#nd-page {
334+
border-inline-start: 1px solid var(--color-fd-border);
335+
}
336+
327337
/* ==================================================================
328338
* Blueprint callout — one treatment, many hooks.
329339
*

docs/home/read-me.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import {
3030

3131
<br />
3232

33+
<br />
34+
3335
## Unit testing for LLMs.
3436

3537
Pytest-native evals that run in CI/CD or as Python scripts. Iterate locally, on your own environment, on your own criteria.

docs/src/components/Buttons/Buttons.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
justify-content: center;
66
gap: 0.4rem;
77
padding: 0.5rem 0.7rem;
8+
border-radius: 0;
89
font-size: 13px;
910
font-weight: 500;
11+
font-family: inherit;
1012
line-height: 1;
1113
text-decoration: none;
1214
appearance: none;

docs/src/components/Buttons/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const PrimaryButton: React.FC<PrimaryButtonProps> = (props) => {
9696
ref={buttonRef}
9797
type={type}
9898
className={styles.primary}
99+
data-button
99100
data-callout
100101
>
101102
{renderContent({
@@ -138,6 +139,7 @@ export const SecondaryButton: React.FC<ButtonProps> = (props) => {
138139
{...buttonProps}
139140
type={type}
140141
className={styles.secondary}
142+
data-button
141143
data-callout
142144
>
143145
{renderContent({ children, startIcon, endIcon })}

docs/src/components/Hotkey/Hotkey.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@
3131
.key {
3232
letter-spacing: 0.02em;
3333
}
34+
35+
.key :global(svg) {
36+
width: 0.72rem;
37+
height: 0.72rem;
38+
flex-shrink: 0;
39+
}

docs/src/components/Hotkey/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useEffect } from "react";
4-
import { Command } from "lucide-react";
4+
import { Command, CornerDownLeft } from "lucide-react";
55
import styles from "./Hotkey.module.scss";
66

77
export type HotkeyConfig = {
@@ -14,6 +14,14 @@ type HotkeyProps = {
1414
ariaLabel?: string;
1515
};
1616

17+
function renderHotkeyLabel(key: string) {
18+
if (key.toLowerCase() === "enter") {
19+
return <CornerDownLeft aria-hidden="true" />;
20+
}
21+
22+
return key;
23+
}
24+
1725
const Hotkey: React.FC<HotkeyProps> = ({ hotkey, ariaLabel }) => {
1826
useEffect(() => {
1927
function onKeyDown(event: KeyboardEvent) {
@@ -50,7 +58,7 @@ const Hotkey: React.FC<HotkeyProps> = ({ hotkey, ariaLabel }) => {
5058
<span className={styles.icon} aria-hidden="true">
5159
<Command />
5260
</span>
53-
<span className={styles.key}>{hotkey.key}</span>
61+
<span className={styles.key}>{renderHotkeyLabel(hotkey.key)}</span>
5462
</kbd>
5563
);
5664
};

docs/src/layouts/SiteTopNav/SiteTopNav.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ $toc-visible-min: 1280px;
77
position: sticky;
88
top: var(--fd-docs-row-1);
99
z-index: 10;
10+
--nd-header-logo-width: 268px;
1011
backdrop-filter: blur(12px);
1112
transition: colors;
1213
}
@@ -62,7 +63,7 @@ $toc-visible-min: 1280px;
6263
@media (min-width: $grid-min) {
6364
display: grid;
6465
grid-template-columns:
65-
var(--fd-sidebar-col)
66+
var(--nd-header-logo-width, var(--fd-sidebar-col))
6667
minmax(0, 1fr)
6768
var(--nd-header-utils-width);
6869
}

docs/src/sections/home/HomeHeroSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const HomeHeroSection: React.FC = () => {
6464
<div className={styles.actions}>
6565
<PrimaryButton
6666
href="/docs/getting-started"
67+
shortkey="Enter"
6768
endIcon={<ArrowUpRight aria-hidden />}
6869
>
6970
Get Started

docs/src/sections/home/HomePytestDemo/HomePytestDemo.module.scss

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,21 +173,38 @@
173173
}
174174

175175
.runButton {
176+
--fd-callout-color: var(--color-fd-primary-foreground);
177+
--fd-callout-ink: color-mix(
178+
in oklch,
179+
var(--color-fd-primary-foreground) 14%,
180+
transparent
181+
);
182+
--fd-callout-rule: color-mix(
183+
in oklch,
184+
var(--color-fd-foreground) 55%,
185+
transparent
186+
);
176187
display: inline-flex;
177188
align-items: center;
189+
justify-content: center;
178190
gap: 0.45rem;
179-
padding: 0.45rem 0.7rem;
180-
border: 1px solid var(--demo-foreground);
181-
background: var(--demo-foreground);
182-
color: var(--demo-surface);
183-
font-size: 11px;
184-
font-weight: 600;
185-
cursor: pointer;
186-
transition: opacity 150ms ease, background-color 150ms ease;
187191
align-self: flex-start;
192+
padding: 0.5rem 0.7rem;
193+
border: 1px solid var(--color-fd-primary);
194+
border-radius: 0;
195+
background: var(--color-fd-primary);
196+
color: var(--color-fd-primary-foreground);
197+
font-family: inherit;
198+
font-size: 13px;
199+
font-weight: 500;
200+
line-height: 1;
201+
appearance: none;
202+
cursor: pointer;
203+
transition: background-color 160ms ease, color 160ms ease,
204+
border-color 160ms ease;
188205

189206
&:hover:not(:disabled) {
190-
opacity: 0.92;
207+
background: color-mix(in oklch, var(--color-fd-primary) 88%, transparent);
191208
}
192209

193210
&:disabled {

docs/src/sections/home/HomePytestDemo/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,13 @@ const HomePytestDemo: React.FC<HomePytestDemoProps> = ({ hideHeader = false }) =
340340
className={styles.runButton}
341341
onClick={runDemo}
342342
disabled={status === "running"}
343+
data-button
344+
data-callout
343345
>
344346
{status === "running" ? (
345-
<LoaderCircle size={14} className={styles.spinner} />
347+
<LoaderCircle size={14} className={styles.spinner} aria-hidden="true" />
346348
) : (
347-
<Play size={14} />
349+
<Play size={14} aria-hidden="true" />
348350
)}
349351
{status === "running" ? "Evaluating" : "Evaluate"}
350352
</button>

0 commit comments

Comments
 (0)