Skip to content

Commit 7825000

Browse files
committed
fix links and titles
1 parent 8ea0d1f commit 7825000

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

packages/docs/astro.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const typeDocConfig: StarlightTypeDocOptions['typeDoc'] = {
3636
private: true,
3737
external: false,
3838
},
39-
};
39+
}
4040

4141
const sidebar = [
4242
{ label: 'Overview', link: '/' },
@@ -119,6 +119,13 @@ export default defineConfig({
119119
Sidebar: './src/components/Sidebar.astro',
120120
MobileMenuFooter: './src/components/MobileFooter.astro',
121121
},
122+
social: [
123+
{
124+
icon: 'github',
125+
label: 'ChatKit.js',
126+
href: 'https://github.com/openai/chatkit-js',
127+
},
128+
],
122129
locales: {
123130
root: {
124131
label: 'English',

packages/docs/src/components/MobileFooter.astro

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,12 @@
11
---
2-
import { Icon } from '@astrojs/starlight/components';
32
import LanguageSelect from '@astrojs/starlight/components/LanguageSelect.astro';
4-
import SocialIcons from '@astrojs/starlight/components/SocialIcons.astro';
3+
import SocialIcons from 'virtual:starlight/components/SocialIcons';
54
import ThemeSelect from '@astrojs/starlight/components/ThemeSelect.astro';
6-
import { ParseStatus } from 'astro:schema';
7-
8-
const additionalLinks = [
9-
{
10-
label: 'Chatkit.js',
11-
href: 'https://github.com/openai/chatkit-js',
12-
icon: 'github' as const,
13-
},
14-
];
155
---
166

177
<div class="mobile-preferences sl-flex">
188
<div class="social-icons">
199
<SocialIcons />
20-
{
21-
additionalLinks.map(({ label, href, icon }) => (
22-
<a {href} target="_blank" rel="noopener noreferrer" class="sl-flex">
23-
<Icon name={icon as any} />
24-
<span>{label}</span>
25-
</a>
26-
))
27-
}
2810
</div>
2911
<ThemeSelect />
3012
<LanguageSelect />
@@ -61,12 +43,6 @@ const additionalLinks = [
6143
font-size: var(--sl-text-sm);
6244
margin-inline-start: 0.3rem;
6345
}
64-
65-
@media (max-width: 72rem) {
66-
span {
67-
@apply sr-only;
68-
}
69-
}
7046
}
7147
a:hover {
7248
opacity: 0.66;

packages/docs/src/components/SocialIcons.astro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ const links = config.social || [];
3131
font-size: var(--sl-text-sm);
3232
margin-inline-start: 0.3rem;
3333
}
34-
35-
@media (max-width: 72rem) {
36-
span {
37-
@apply sr-only;
38-
}
39-
}
4034
}
4135
a:hover {
4236
opacity: 0.66;

packages/docs/src/content/docs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: OpenAI Agent Embeds
2+
title: ChatKit.js
33
description: Embed ChatKit in your app using React or the Web Component.
44
tableOfContents: false
55
---

0 commit comments

Comments
 (0)