Skip to content

Commit 6c62272

Browse files
authored
Merge branch 'main' into feat/ee
2 parents 47d8411 + 2bb6833 commit 6c62272

File tree

1,606 files changed

+90150
-21296
lines changed

Some content is hidden

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

1,606 files changed

+90150
-21296
lines changed

.cursor/commands/council.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Based on the given area of interest, please:
2+
3+
1. Dig around the codebase in terms of that given area of interest, gather general information such as keywords and architecture overview.
4+
2. Spawn off n=10 (unless specified otherwise) task agents to dig deeper into the codebase in terms of that given area of interest, some of them should be out of the box for variance.
5+
3. Once the task agents are done, use the information to do what the user wants.
6+
7+
If user is in plan mode, use the information to create the plan.

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -172,31 +172,6 @@ Key environment variables for self-hosted deployments. See [`.env.example`](apps
172172
| `API_ENCRYPTION_KEY` | Yes | Encrypts API keys (`openssl rand -hex 32`) |
173173
| `COPILOT_API_KEY` | No | API key from sim.ai for Copilot features |
174174

175-
## Troubleshooting
176-
177-
### Ollama models not showing in dropdown (Docker)
178-
179-
If you're running Ollama on your host machine and Sim in Docker, change `OLLAMA_URL` from `localhost` to `host.docker.internal`:
180-
181-
```bash
182-
OLLAMA_URL=http://host.docker.internal:11434 docker compose -f docker-compose.prod.yml up -d
183-
```
184-
185-
See [Using an External Ollama Instance](#using-an-external-ollama-instance) for details.
186-
187-
### Database connection issues
188-
189-
Ensure PostgreSQL has the pgvector extension installed. When using Docker, wait for the database to be healthy before running migrations.
190-
191-
### Port conflicts
192-
193-
If ports 3000, 3002, or 5432 are in use, configure alternatives:
194-
195-
```bash
196-
# Custom ports
197-
NEXT_PUBLIC_APP_URL=http://localhost:3100 POSTGRES_PORT=5433 docker compose up -d
198-
```
199-
200175
## Tech Stack
201176

202177
- **Framework**: [Next.js](https://nextjs.org/) (App Router)

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type React from 'react'
22
import { findNeighbour } from 'fumadocs-core/page-tree'
3+
import { Pre } from 'fumadocs-ui/components/codeblock'
34
import defaultMdxComponents from 'fumadocs-ui/mdx'
45
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page'
56
import { ChevronLeft, ChevronRight } from 'lucide-react'
@@ -21,6 +22,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
2122
const data = page.data as PageData
2223
const MDX = data.body
2324
const baseUrl = 'https://docs.sim.ai'
25+
const markdownContent = await data.getText('processed')
2426

2527
const pageTreeRecord = source.pageTree as Record<string, any>
2628
const pageTree =
@@ -200,7 +202,7 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
200202
<div className='relative mt-6 sm:mt-0'>
201203
<div className='absolute top-1 right-0 flex items-center gap-2'>
202204
<div className='hidden sm:flex'>
203-
<LLMCopyButton markdownUrl={`${page.url}.mdx`} />
205+
<LLMCopyButton content={markdownContent} />
204206
</div>
205207
<PageNavigationArrows previous={neighbours?.previous} next={neighbours?.next} />
206208
</div>
@@ -211,7 +213,11 @@ export default async function Page(props: { params: Promise<{ slug?: string[]; l
211213
<MDX
212214
components={{
213215
...defaultMdxComponents,
214-
CodeBlock,
216+
pre: (props: React.HTMLAttributes<HTMLPreElement>) => (
217+
<CodeBlock {...props}>
218+
<Pre>{props.children}</Pre>
219+
</CodeBlock>
220+
),
215221
h1: (props: React.HTMLAttributes<HTMLHeadingElement>) => (
216222
<Heading as='h1' {...props} />
217223
),

apps/docs/app/[lang]/layout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineI18nUI } from 'fumadocs-ui/i18n'
33
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
44
import { RootProvider } from 'fumadocs-ui/provider/next'
55
import { Geist_Mono, Inter } from 'next/font/google'
6+
import Script from 'next/script'
67
import {
78
SidebarFolder,
89
SidebarItem,
@@ -17,11 +18,13 @@ import '../global.css'
1718
const inter = Inter({
1819
subsets: ['latin'],
1920
variable: '--font-geist-sans',
21+
display: 'swap',
2022
})
2123

2224
const geistMono = Geist_Mono({
2325
subsets: ['latin'],
2426
variable: '--font-geist-mono',
27+
display: 'swap',
2528
})
2629

2730
const { provider } = defineI18nUI(i18n, {
@@ -93,10 +96,9 @@ export default async function Layout({ children, params }: LayoutProps) {
9396
type='application/ld+json'
9497
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
9598
/>
96-
{/* OneDollarStats Analytics - CDN script handles everything automatically */}
97-
<script defer src='https://assets.onedollarstats.com/stonks.js' />
9899
</head>
99100
<body className='flex min-h-screen flex-col font-sans'>
101+
<Script src='https://assets.onedollarstats.com/stonks.js' strategy='lazyOnload' />
100102
<RootProvider i18n={provider(lang)}>
101103
<Navbar />
102104
<DocsLayout

apps/docs/app/[lang]/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function NotFound() {
99
<DocsPage>
1010
<DocsBody>
1111
<div className='flex min-h-[60vh] flex-col items-center justify-center text-center'>
12-
<h1 className='mb-4 bg-gradient-to-b from-[#8357FF] to-[#6F3DFA] bg-clip-text font-bold text-8xl text-transparent'>
12+
<h1 className='mb-4 bg-gradient-to-b from-[#47d991] to-[#33c482] bg-clip-text font-bold text-8xl text-transparent'>
1313
404
1414
</h1>
1515
<h2 className='mb-2 font-semibold text-2xl text-foreground'>Page Not Found</h2>

0 commit comments

Comments
 (0)