Skip to content

Commit bb09e97

Browse files
docs: further design revisions
1 parent 0e86bc3 commit bb09e97

File tree

7 files changed

+32
-15
lines changed

7 files changed

+32
-15
lines changed

docs/astro.config.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,6 @@ export default defineConfig({
332332
},
333333
},
334334
social: [
335-
{
336-
icon: 'github',
337-
href: 'https://github.com/openai/openai-agents-js',
338-
label: 'openai-agents-js',
339-
},
340335
{
341336
icon: 'seti:python',
342337
href: 'https://github.com/openai/openai-agents-python',
@@ -349,7 +344,7 @@ export default defineConfig({
349344
plugins,
350345
sidebar,
351346
expressiveCode: {
352-
themes: ['dracula', 'one-light'],
347+
themes: ['houston', 'one-light'],
353348
},
354349
customCss: ['./src/styles/global.css'],
355350
}),

docs/src/components/PageTitle.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (isHomepage && idx !== -1) {
2020

2121
{
2222
isHomepage ? (
23-
<h1 id="_top">
23+
<h1 id="_top" class="sr-only">
2424
{beforeKeyword}
2525
{hasKeyword ? <span class="keyword">{keyword}</span> : ''}
2626
{afterKeyword}

docs/src/components/SocialIcons.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const links = config.social || [];
99
links.length > 0 && (
1010
<>
1111
{links.map(({ label, href, icon }) => (
12-
<a {href} rel="me" class="sl-flex">
12+
<a {href} target="_blank" rel="noopener noreferrer" class="sl-flex">
1313
<Icon name={icon} />
1414
<span>{label}</span>
1515
</a>

docs/src/content/docs/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OpenAI Agents SDK for TypeScript
2+
title: OpenAI Agents SDK TypeScript
33
description: The OpenAI Agents SDK for TypeScript enables you to build agentic AI apps in a lightweight, easy-to-use package with very few abstractions.
44
---
55

@@ -15,6 +15,8 @@ import helloWorldExample from '../../../../examples/docs/hello-world.ts?raw';
1515
<Fragment slot="cta">Let's build</Fragment>
1616
</Hero>
1717

18+
## Overview
19+
1820
The [OpenAI Agents SDK for TypeScript](https://github.com/openai/openai-agents-js)
1921
enables you to build agentic AI apps in a lightweight, easy-to-use package with
2022
very few abstractions. It's a production-ready upgrade of our previous

docs/src/content/docs/ja/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OpenAI Agents SDK for TypeScript
2+
title: OpenAI Agents SDK TypeScript
33
description: The OpenAI Agents SDK for TypeScript enables you to build agentic AI apps in a lightweight, easy-to-use package with very few abstractions.
44
---
55

docs/src/styles/global.css

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@
183183
}
184184

185185
.content-panel:first-of-type {
186-
padding-top: var(--sl-content-pad-x) !important;
186+
/* padding-top: var(--sl-content-pad-x) !important; */
187+
padding-top: 1.5rem !important;
187188
}
188189

189190
.content-panel {
@@ -205,6 +206,10 @@
205206
color: var(--openai-title-color) !important;
206207
}
207208

209+
.social-icons::after {
210+
border: none !important;
211+
}
212+
208213
.main-pane {
209214
background-color: var(--openai-background);
210215
border-top-left-radius: 8px;
@@ -292,7 +297,8 @@
292297
}
293298

294299
.right-sidebar-panel {
295-
padding-top: var(--sl-content-pad-x) !important;
300+
/* padding-top: var(--sl-content-pad-x) !important; */
301+
padding-top: 2.5rem !important;
296302
}
297303

298304
starlight-toc {
@@ -326,6 +332,11 @@
326332

327333
.sidebar {
328334
--sl-color-hairline-shade: rgba(0, 0, 0, 0) !important;
335+
336+
.sidebar-content {
337+
padding-top: 2rem;
338+
}
339+
329340
a[aria-current='page'] {
330341
color: var(--openai-primary) !important;
331342
font-weight: 500 !important;
@@ -357,8 +368,11 @@
357368
}
358369

359370
ul.top-level > li > details > summary {
371+
justify-content: flex-start !important;
372+
360373
svg {
361374
color: var(--openai-nav-category-text) !important;
375+
align-self: flex-end;
362376
}
363377

364378
span {
@@ -414,7 +428,11 @@
414428

415429
.sl-markdown-content {
416430
.expressive-code .ec-line {
417-
line-height: 1.2rem;
431+
line-height: 0.5rem;
432+
433+
&:has(.code *:is(span)) {
434+
line-height: 1.2rem;
435+
}
418436
}
419437
}
420438

@@ -442,7 +460,6 @@
442460
.openai-hero-code {
443461
margin-bottom: var(--hero-padding);
444462
margin-inline-start: calc(var(--hero-padding) - 1rem);
445-
margin-inline-end: var(--hero-padding);
446463

447464
@media (min-width: 72rem) {
448465
margin-bottom: 0rem;
@@ -456,7 +473,8 @@
456473
font-size: var(--sl-text-xs);
457474
border-radius: 0;
458475
&[aria-selected='true'] {
459-
color: var(--openai-primary);
476+
color: var(--openai-text-primary);
477+
/* color: var(--openai-primary); */
460478
font-weight: 500;
461479
border-bottom: 0;
462480
}
@@ -476,6 +494,7 @@
476494
min-width: 15rem;
477495

478496
@media (min-width: 72rem) {
497+
padding-inline-end: 0;
479498
max-width: 20rem;
480499
}
481500
color: var(--openai-title-color) !important;

examples/docs/toppage/textAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ const result = await run(
99
agent,
1010
'Write a haiku about recursion in programming.',
1111
);
12+
1213
console.log(result.finalOutput);

0 commit comments

Comments
 (0)