Skip to content

Commit 08eeee1

Browse files
Mlaz-codeclaude
andcommitted
feat: enable site search, fix splits tier claim and rate limit example
- Enable Pagefind search via Nextra search config and Search component - Fix splits doc: was "Pro tier or higher required" but API has no tier gate - Fix pricing page: rate limit reset example was 13-digit (ms), API returns 10-digit (seconds) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ecb2048 commit 08eeee1

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/[lang]/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Footer, Layout, Navbar } from 'nextra-theme-docs'
2-
import { Head } from 'nextra/components'
2+
import { Head, Search } from 'nextra/components'
33
import { getPageMap } from 'nextra/page-map'
44
import Link from 'next/link'
55
import { PostHogProvider } from '../../components/PostHogProvider'
@@ -56,6 +56,7 @@ export default async function LangLayout({ children, params }) {
5656
<PostHogProvider>
5757
<Layout
5858
pageMap={await getPageMap(`/${lang}`)}
59+
search={<Search />}
5960
sidebar={{ defaultMenuCollapseLevel: 1, toggleButton: true }}
6061
toc={{ backToTop: true }}
6162
feedback={{ content: null }}

content/en/api-reference/splits.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GET /api/v1/splits
1414

1515
## Authentication
1616

17-
Requires API key. **Pro tier or higher required.** Your account must have the `splits` feature enabled.
17+
Requires API key. Available on all tiers.
1818

1919
## What are betting splits?
2020

content/en/pricing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ All API requests are rate limited per API key. Rate limit headers are included i
133133
```
134134
X-RateLimit-Limit: 300
135135
X-RateLimit-Remaining: 299
136-
X-RateLimit-Reset: 1703123456789
136+
X-RateLimit-Reset: 1703123460
137137
```
138138

139139
### Rate Limit Response

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import nextra from 'nextra';
22

33
const withNextra = nextra({
44
defaultShowCopyCode: true,
5+
search: { codeblocks: false },
56
});
67

78
export default withNextra({

0 commit comments

Comments
 (0)