Skip to content

Commit e7eed99

Browse files
committed
Update API reference links to use local /reference paths
Replaced external 'https://api.thirdweb.com/reference' links with local '/reference' paths across documentation, sidebar, and metadata files for consistency and improved navigation within the portal. Closes BLD-221
1 parent a328250 commit e7eed99

File tree

20 files changed

+20
-32
lines changed

20 files changed

+20
-32
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const connectLinks: Array<{
124124

125125
const apisLinks = [
126126
{
127-
href: "https://api.thirdweb.com/reference",
127+
href: "/reference",
128128
name: "HTTP API",
129129
},
130130
{

apps/portal/src/app/ai/chat/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ print(chat_completion)
8888
- [Handle streaming responses](/ai/chat/streaming)
8989
- [Transaction Execution](/ai/chat/execution)
9090
- [Use the Vercel AI SDK](/ai/chat/ai-sdk)
91-
- [Full API Reference](https://api.thirdweb.com/reference#tag/ai/post/ai/chat)
91+
- [Full API Reference](/reference#tag/ai/post/ai/chat)

apps/portal/src/app/ai/llm-txt/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Docs: https://api.thirdweb.com/llms.txt
1818

1919
## thirdweb API reference
2020

21-
The [thirdweb HTTP API reference](https://api.thirdweb.com/reference) as markdown.
21+
The [thirdweb HTTP API reference](/reference) as markdown.
2222

2323
Available at: https://api.thirdweb.com/llms.txt
2424

apps/portal/src/app/ai/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const sidebar: SideBar = {
3131
},
3232
{
3333
name: "API Reference",
34-
href: "https://api.thirdweb.com/reference#tag/ai/post/ai/chat",
34+
href: "/reference#tag/ai/post/ai/chat",
3535
},
3636
],
3737
},

apps/portal/src/app/contracts/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const sidebar: SideBar = {
6363
isCollapsible: false,
6464
links: [
6565
{
66-
href: "https://api.thirdweb.com/reference#tag/contracts",
66+
href: "/reference#tag/contracts",
6767
icon: <CodeIcon />,
6868
name: "HTTP API",
6969
},

apps/portal/src/app/nebula/api-reference/chat/EndpointMetadata.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function EndpointMetadata() {
3030
method: "POST",
3131
origin: "https://nebula-api.thirdweb.com",
3232
path: "/chat",
33-
referenceUrl: "https://api.thirdweb.com/reference#tag/ai/ai/chat",
33+
referenceUrl: "/reference#tag/ai/ai/chat",
3434
request: {
3535
queryParameters: [],
3636
bodyParameters: [

apps/portal/src/app/nebula/api-reference/clear-session/EndpointMetadata.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export function EndpointMetadata() {
1515
method: "POST",
1616
origin: "https://nebula-api.thirdweb.com",
1717
path: "/session/{session_id}/clear",
18-
referenceUrl:
19-
"https://api.thirdweb.com/reference#tag/ai/ai/clear-session",
18+
referenceUrl: "/reference#tag/ai/ai/clear-session",
2019
request: {
2120
queryParameters: [],
2221
bodyParameters: [],

apps/portal/src/app/nebula/api-reference/create-session/EndpointMetadata.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export function EndpointMetadata() {
1515
method: "POST",
1616
origin: "https://nebula-api.thirdweb.com",
1717
path: "/session",
18-
referenceUrl:
19-
"https://api.thirdweb.com/reference#tag/ai/ai/create-session",
18+
referenceUrl: "/reference#tag/ai/ai/create-session",
2019
request: {
2120
queryParameters: [],
2221
bodyParameters: [

apps/portal/src/app/nebula/api-reference/delete-session/EndpointMetadata.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ export function EndpointMetadata() {
2222
method: "DELETE",
2323
origin: "https://nebula-api.thirdweb.com",
2424
path: "/session/{session_id}",
25-
referenceUrl:
26-
"https://api.thirdweb.com/reference#tag/ai/ai/delete-session",
25+
referenceUrl: "/reference#tag/ai/ai/delete-session",
2726
request: {
2827
queryParameters: [],
2928
bodyParameters: [],

apps/portal/src/app/nebula/api-reference/execute/EndpointMetadata.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function EndpointMetadata() {
3636
method: "POST",
3737
origin: "https://nebula-api.thirdweb.com",
3838
path: "/execute",
39-
referenceUrl: "https://api.thirdweb.com/reference#tag/ai/ai/execute",
39+
referenceUrl: "/reference#tag/ai/ai/execute",
4040
request: {
4141
queryParameters: [],
4242
bodyParameters: [

0 commit comments

Comments
 (0)