Skip to content

Commit b6341eb

Browse files
authored
v0.9.9: nextjs version bump, library articles, composer mention menu fixes
2 parents 2a7f85d + 7077210 commit b6341eb

198 files changed

Lines changed: 3453 additions & 3884 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/app/[[...slug]]/page.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
116116
if (!page) notFound()
117117

118118
const data = page.data as unknown as PageData & {
119+
lastModified?: Date
119120
_openapi?: { method?: string }
120121
getAPIPageProps?: () => ApiPageProps
121122
}
@@ -246,6 +247,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
246247
title={data.title}
247248
description={data.description || ''}
248249
url={`${BASE_URL}${page.url}`}
250+
dateModified={data.lastModified?.toISOString()}
249251
breadcrumb={breadcrumbs}
250252
/>
251253
<DocsPage
@@ -373,7 +375,6 @@ export async function generateMetadata(props: { params: Promise<{ slug?: string[
373375
creator: '@simdotai',
374376
site: '@simdotai',
375377
},
376-
canonical: fullUrl,
377378
alternates: {
378379
canonical: fullUrl,
379380
},

‎apps/docs/app/layout.tsx‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Navbar } from '@/components/navbar/navbar'
1111
import { SimWordmark } from '@/components/ui/sim-logo'
1212
import { serializeJsonLd } from '@/lib/json-ld'
1313
import { source } from '@/lib/source'
14-
import { DOCS_BASE_URL } from '@/lib/urls'
14+
import { DOCS_BASE_URL, SIM_SITE_URL } from '@/lib/urls'
1515
import { season } from '@/app/fonts/season'
1616
import './global.css'
1717

@@ -31,7 +31,7 @@ const structuredData = {
3131
publisher: {
3232
'@type': 'Organization',
3333
name: 'Sim',
34-
url: 'https://sim.ai',
34+
url: SIM_SITE_URL,
3535
logo: {
3636
'@type': 'ImageObject',
3737
url: `${DOCS_BASE_URL}/static/logo.png`,
@@ -138,7 +138,7 @@ export const metadata = {
138138
'AI agent deployment',
139139
'AI tools',
140140
],
141-
authors: [{ name: 'Sim Team', url: 'https://sim.ai' }],
141+
authors: [{ name: 'Sim Team', url: SIM_SITE_URL }],
142142
creator: 'Sim',
143143
publisher: 'Sim',
144144
category: 'Developer Tools',
@@ -185,18 +185,16 @@ export const metadata = {
185185
site: '@simdotai',
186186
images: [`${DOCS_BASE_URL}/api/og?title=Sim%20Documentation`],
187187
},
188+
/**
189+
* Preview hints only. Indexable is the default, and asserting `index` or a
190+
* root canonical here would also reach the not-found page, contradicting
191+
* the `noindex` Next adds there; each doc page sets its own canonical.
192+
*/
188193
robots: {
189-
index: true,
190-
follow: true,
191194
googleBot: {
192-
index: true,
193-
follow: true,
194195
'max-video-preview': -1,
195196
'max-image-preview': 'large',
196197
'max-snippet': -1,
197198
},
198199
},
199-
alternates: {
200-
canonical: DOCS_BASE_URL,
201-
},
202200
}

‎apps/docs/app/llms.txt/route.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ ${Object.entries(sections)
5151
5252
- [Full documentation content](${baseUrl}/llms-full.txt)
5353
- Individual page content: ${baseUrl}/llms.mdx/[page-path]
54-
- [API documentation](${baseUrl}/api-reference/)
55-
- [Tool integrations](${baseUrl}/tools/)
54+
- [API documentation](${baseUrl}/api-reference/getting-started)
55+
- [Integrations](${baseUrl}/integrations)
5656
5757
## Statistics
5858

‎apps/docs/app/sitemap.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export const revalidate = 3600
77
export default function sitemap(): MetadataRoute.Sitemap {
88
return source.getPages().map((page) => ({
99
url: `${DOCS_BASE_URL}${page.url}`,
10+
lastModified: 'lastModified' in page.data ? page.data.lastModified : undefined,
1011
}))
1112
}

‎apps/docs/components/navbar/navbar.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { usePathname } from 'next/navigation'
66
import { SearchTrigger } from '@/components/ui/search-trigger'
77
import { SimWordmark } from '@/components/ui/sim-logo'
88
import { ThemeToggle } from '@/components/ui/theme-toggle'
9+
import { SIM_SITE_URL } from '@/lib/urls'
910
import { cn } from '@/lib/utils'
1011

1112
/**
@@ -82,7 +83,7 @@ export function Navbar() {
8283

8384
<div className='flex items-center gap-2'>
8485
<ThemeToggle />
85-
<ChipLink href='https://sim.ai' variant='primary'>
86+
<ChipLink href={SIM_SITE_URL} variant='primary'>
8687
Get started
8788
</ChipLink>
8889
</div>

‎apps/docs/components/structured-data.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export function StructuredData({
2525
headline: title,
2626
description: description,
2727
url: url,
28-
...(dateModified && { datePublished: dateModified }),
2928
...(dateModified && { dateModified }),
3029
author: {
3130
'@type': 'Organization',

‎apps/docs/content/docs/api-reference/python.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ from simstudio import SimStudioClient
3030
# Initialize the client
3131
client = SimStudioClient(
3232
api_key="your-api-key-here",
33-
base_url="https://sim.ai" # optional, defaults to https://sim.ai
33+
base_url="https://www.sim.ai" # optional; the default https://sim.ai redirects to this host
3434
)
3535

3636
# Execute a workflow
@@ -53,7 +53,7 @@ SimStudioClient(api_key: str, base_url: str = "https://sim.ai")
5353

5454
**Parameters:**
5555
- `api_key` (str): Your Sim API key
56-
- `base_url` (str, optional): Base URL for the Sim API
56+
- `base_url` (str, optional): Base URL for the Sim API (defaults to `https://sim.ai`, which redirects to `https://www.sim.ai`; set the `www` host explicitly)
5757

5858
#### Methods
5959

@@ -678,7 +678,7 @@ def stream_workflow():
678678

679679
def generate():
680680
response = requests.post(
681-
'https://sim.ai/api/v2/workflows/WORKFLOW_ID/execute',
681+
'https://www.sim.ai/api/v2/workflows/WORKFLOW_ID/execute',
682682
headers={
683683
'Content-Type': 'application/json',
684684
'X-API-Key': os.getenv('SIM_API_KEY')
@@ -732,7 +732,7 @@ Configure the client using environment variables:
732732
# Development configuration
733733
client = SimStudioClient(
734734
api_key=os.getenv("SIM_API_KEY"),
735-
base_url=os.getenv("SIM_BASE_URL", "https://sim.ai")
735+
base_url=os.getenv("SIM_BASE_URL", "https://www.sim.ai")
736736
)
737737
```
738738
</Tab>
@@ -748,7 +748,7 @@ Configure the client using environment variables:
748748

749749
client = SimStudioClient(
750750
api_key=api_key,
751-
base_url=os.getenv("SIM_BASE_URL", "https://sim.ai")
751+
base_url=os.getenv("SIM_BASE_URL", "https://www.sim.ai")
752752
)
753753
```
754754
</Tab>

‎apps/docs/content/docs/api-reference/typescript.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { SimStudioClient } from 'simstudio-ts-sdk';
4444
// Initialize the client
4545
const client = new SimStudioClient({
4646
apiKey: 'your-api-key-here',
47-
baseUrl: 'https://sim.ai' // optional, defaults to https://sim.ai
47+
baseUrl: 'https://www.sim.ai' // optional; the default https://sim.ai redirects to this host
4848
});
4949

5050
// Execute a workflow
@@ -68,7 +68,7 @@ new SimStudioClient(config: SimStudioConfig)
6868

6969
**Configuration:**
7070
- `config.apiKey` (string): Your Sim API key
71-
- `config.baseUrl` (string, optional): Base URL for the Sim API (defaults to `https://sim.ai`)
71+
- `config.baseUrl` (string, optional): Base URL for the Sim API (defaults to `https://sim.ai`, which redirects to `https://www.sim.ai`; set the `www` host explicitly)
7272

7373
#### Methods
7474

@@ -492,7 +492,7 @@ Configure the client using environment variables:
492492

493493
const client = new SimStudioClient({
494494
apiKey,
495-
baseUrl: process.env.SIM_BASE_URL || 'https://sim.ai'
495+
baseUrl: process.env.SIM_BASE_URL || 'https://www.sim.ai'
496496
});
497497
```
498498
</Tab>

‎apps/docs/content/docs/chat/workflows.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Sim can deploy a workflow as any of the three deployment types:
6969

7070
| Deployment type | What it creates |
7171
|----------------|----------------|
72-
| **API** | A REST endpoint at `https://sim.ai/api/v2/workflows/{id}/execute` |
72+
| **API** | A REST endpoint at `https://www.sim.ai/api/v2/workflows/{id}/execute` |
7373
| **Chat** | A hosted conversational interface with a shareable URL |
7474
| **MCP tool** | An MCP server that exposes the workflow as a tool |
7575

‎apps/docs/content/docs/desktop/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Sim Desktop is the macOS app for your Sim workspace. Everything the web app does
1818

1919
## Download
2020

21-
**[Download Sim Desktop for macOS](https://sim.ai/api/desktop/update/download)**
21+
**[Download Sim Desktop for macOS](https://www.sim.ai/api/desktop/update/download)**
2222

2323
One universal build runs natively on both Apple Silicon and Intel Macs. It is signed and notarized by Sim, so Gatekeeper accepts it with no override.
2424

0 commit comments

Comments
 (0)