Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
01b4ecb
Remove platform selection
madster456 Sep 30, 2025
06053db
fix sidebar rendering
madster456 Sep 30, 2025
47ccd2b
init static docs
madster456 Sep 30, 2025
318385d
update new codeblock
madster456 Oct 1, 2025
70e6868
Remove codeblock sync demo file
madster456 Oct 1, 2025
eb2293c
fix some lint
madster456 Oct 1, 2025
408e4b4
removed simplified codeblock
madster456 Oct 1, 2025
6231b52
fix remaining lint
madster456 Oct 1, 2025
a009f64
Update platform config for simpler platforms for now, until we are re…
madster456 Oct 1, 2025
0591064
New theme stuff
N2D4 Oct 1, 2025
19ccd77
Weaker code block shadow
N2D4 Oct 1, 2025
e33457b
Merge dev into docs/rework/platforms
N2D4 Oct 2, 2025
31eb9f2
Merge dev into docs/rework/platforms
N2D4 Oct 3, 2025
47bf8e6
Merge dev into docs/rework/platforms
N2D4 Oct 4, 2025
65f0c39
Merge dev into docs/rework/platforms
N2D4 Oct 7, 2025
36ab7ac
Merge dev into docs/rework/platforms
N2D4 Oct 8, 2025
3a143f5
Merge dev into docs/rework/platforms
N2D4 Oct 10, 2025
ba1b1c9
useEffect instead
madster456 Oct 1, 2025
f364a0b
init setup docs new
madster456 Oct 1, 2025
98ef9a3
fix docs-tree
madster456 Oct 8, 2025
fc3a382
fix tab detection in header
madster456 Oct 8, 2025
3ee4ba8
Update examples for hook usage
madster456 Oct 8, 2025
004089d
fix callback url example
madster456 Oct 8, 2025
4ab88c9
fix audience param value missing quotes
madster456 Oct 8, 2025
f328228
clientReadonlyMetadata -> clientReadOnlyMetadata
madster456 Oct 8, 2025
6842815
clientReadonlyMetadata -> clientReadOnlyMetadata
madster456 Oct 8, 2025
4b78dbc
update examples in user-onboarding
madster456 Oct 8, 2025
28c2b33
fix mistake in examples
madster456 Oct 8, 2025
7972f36
Update webhooks examples
madster456 Oct 8, 2025
93eaa1a
update dark-mode examples
madster456 Oct 8, 2025
2d8bca1
Update forgot-password examples
madster456 Oct 8, 2025
b7f73c0
update examples-pages
madster456 Oct 8, 2025
1a3d85f
proper git link
madster456 Oct 8, 2025
a9ad25c
distinguish between client/server headers
madster456 Oct 8, 2025
8a45774
minor changes
madster456 Oct 8, 2025
8ec5bd8
remove overview-new temp file
madster456 Oct 12, 2025
0910c9c
api page styling
madster456 Oct 13, 2025
9520e2d
More styling stuff
madster456 Oct 13, 2025
43fef58
start codeblock-refs
madster456 Oct 13, 2025
39e85e5
fixing links
madster456 Oct 13, 2025
d4b7774
finally fix styling
madster456 Oct 13, 2025
54c7ae6
remove dumb readme
madster456 Oct 13, 2025
f23eb3a
merge dev into docs/rework/platforms
madster456 Oct 13, 2025
bf0dd01
update code examples, and styling on codeblock
madster456 Oct 13, 2025
54c8993
ToC updates
madster456 Oct 14, 2025
1014bbe
clean up toc to remove tabbed headers
madster456 Oct 14, 2025
b2335d4
Update images
madster456 Oct 14, 2025
e92d60b
update pnpm-lock
madster456 Oct 14, 2025
9142d17
update build
madster456 Oct 14, 2025
5f3f9b0
Merge dev into docs/rework/platforms
N2D4 Oct 14, 2025
73fef2e
lint
madster456 Oct 14, 2025
32b4c32
update sdk docs to prod
madster456 Oct 14, 2025
b8a1689
Merge branch 'dev' into docs/rework/platforms
madster456 Oct 14, 2025
bed0265
update overview
madster456 Oct 14, 2025
cfd4bf1
update currentUser.updatePassword sdk
madster456 Oct 14, 2025
1775153
Merge branch 'dev' into docs/rework/platforms
madster456 Oct 14, 2025
37455f1
merge dev into docs/rework/platforms
madster456 Oct 14, 2025
4acef8e
minor fixes
madster456 Oct 15, 2025
3ece1a1
Merge branch 'dev' into docs/rework/platforms
N2D4 Oct 15, 2025
e93426c
Merge branch 'dev' into docs/rework/platforms
madster456 Oct 15, 2025
6089598
Merge dev into docs/rework/platforms
N2D4 Oct 16, 2025
b9b8f12
Merge dev into docs/rework/platforms
N2D4 Oct 17, 2025
cc7e253
update convex docs
madster456 Oct 15, 2025
c036144
update sdk pages
madster456 Oct 17, 2025
c4b5175
update codeblock styling
madster456 Oct 17, 2025
d541887
merge dev into, and update convex docs to latest
madster456 Oct 17, 2025
1c1c3e5
lint
madster456 Oct 17, 2025
a311fe3
Merge dev into docs/rework/platforms
N2D4 Oct 18, 2025
6e698c1
Merge dev into docs/rework/platforms
N2D4 Oct 19, 2025
96f9c25
zen, fix api sidebar, updated docs, codeblock selector
madster456 Oct 20, 2025
5785432
redirect homepage to docs/overview
madster456 Oct 20, 2025
b30a468
update code examples
madster456 Oct 20, 2025
cc29fc3
default toc open on larger screens
madster456 Oct 20, 2025
cb98cbb
Merge branch 'dev' into docs/rework/platforms
madster456 Oct 20, 2025
3670dda
Merge branch 'dev' into docs/rework/platforms
madster456 Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ yarn-error.log*
.vercel
next-env.d.ts

# ignore all generated docs content
/content/docs/
# ignore generated API content
/content/api/
/public/openapi/
/openapi/
Expand Down
22 changes: 22 additions & 0 deletions docs/code-examples/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CodeExample } from '../lib/code-examples';
import { setupExamples } from './setup';

const allExamples: Record<string, Record<string, Record<string, CodeExample[]>>> = {
'setup': setupExamples,
// Add more sections here as needed:
// 'auth': authExamples,
// 'customization': customizationExamples,
};

export function getExample(documentPath: string, exampleName: string): CodeExample[] | undefined {
const [section, ...rest] = documentPath.split('/');
const subsection = rest.join('/');
return allExamples[section]?.[subsection]?.[exampleName];
}

export function getDocumentExamples(documentPath: string): Record<string, CodeExample[]> | undefined {
const [section, ...rest] = documentPath.split('/');
const subsection = rest.join('/');
return allExamples[section]?.[subsection];
}

Loading