Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1673ad

Browse files
authored
Nextra 4 (#13)
* Upgrade to Nextra 4 * Upgrade tailwindcss
1 parent 8cf28bf commit e1673ad

File tree

39 files changed

+1208
-1757
lines changed

39 files changed

+1208
-1757
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,6 @@ cython_debug/
176176
# PyPI configuration file
177177
.pypirc
178178

179-
.DS_Store
179+
.DS_Store
180+
181+
_pagefind/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

app/_meta.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
index: "About OXP",
3+
"spec-1.0": {
4+
title: "Specification (1.0)",
5+
},
6+
clients: {
7+
title: "Clients",
8+
},
9+
};

app/clients/_meta.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export default {
2+
python: {
3+
title: "Python",
4+
href: "https://github.com/OpenExecProtocol/oxp-python",
5+
},
6+
typescript: {
7+
title: "TypeScript",
8+
href: "https://github.com/OpenExecProtocol/oxp-ts",
9+
},
10+
go: {
11+
title: "Go (coming soon)",
12+
href: "https://github.com/OpenExecProtocol",
13+
},
14+
java: {
15+
title: "Java (coming soon)",
16+
href: "https://github.com/OpenExecProtocol",
17+
},
18+
};

app/layout.tsx

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
import { Footer } from "@components/Footer";
2+
import { Logo } from "@components/Logo";
3+
import { ThemeProvider } from "next-themes";
4+
import { Layout, Navbar } from "nextra-theme-docs";
5+
import { Head } from "nextra/components";
6+
import { getPageMap } from "nextra/page-map";
7+
8+
import "nextra-theme-docs/style.css";
9+
import "../styles/global.css";
10+
11+
export const metadata = {
12+
title: {
13+
default: "Open eXecution Protocol (OXP)",
14+
template: "%s | Open eXecution Protocol (OXP)",
15+
},
16+
description: "The Open eXecution Protocol (OXP) specification",
17+
openGraph: {
18+
title: "Open eXecution Protocol (OXP)",
19+
description: "The Open eXecution Protocol (OXP) specification",
20+
url: "https://openexecprotocol.org",
21+
site_name: "Open eXecution Protocol (OXP)",
22+
},
23+
twitter: {
24+
card: "summary_large_image",
25+
site: "openexecprotocol.org",
26+
url: "https://openexecprotocol.org",
27+
},
28+
};
29+
30+
const navbar = (
31+
<Navbar
32+
projectLink="https://github.com/OpenExecProtocol/Specification"
33+
logoLink="https://openexecprotocol.org"
34+
logo={<Logo />}
35+
/>
36+
);
37+
38+
export default async function RootLayout({ children }) {
39+
return (
40+
<html
41+
lang="en"
42+
dir="ltr"
43+
// Suggested by `next-themes` package https://github.com/pacocoursey/next-themes#with-app
44+
suppressHydrationWarning
45+
>
46+
<Head
47+
color={{
48+
hue: { dark: 33, light: 33 },
49+
saturation: { dark: 85, light: 85 },
50+
lightness: { dark: 73, light: 73 },
51+
}}
52+
>
53+
<link rel="manifest" href="/site.webmanifest" />
54+
<link rel="shortcut icon" href="/favicon.ico" />
55+
<link
56+
rel="apple-touch-icon"
57+
sizes="180x180"
58+
href="/apple-touch-icon.png"
59+
/>
60+
<link
61+
rel="icon"
62+
type="image/png"
63+
sizes="32x32"
64+
href="/favicon-32x32.png"
65+
/>
66+
<link
67+
rel="icon"
68+
type="image/png"
69+
sizes="16x16"
70+
href="/favicon-16x16.png"
71+
/>
72+
<script
73+
async
74+
src="https://www.googletagmanager.com/gtag/js?id=G-DFGXFEC380"
75+
/>
76+
<script
77+
// biome-ignore lint/security/noDangerouslySetInnerHtml: This is a valid use case
78+
dangerouslySetInnerHTML={{
79+
__html: `
80+
if (typeof window !== 'undefined') {
81+
window.dataLayer = window.dataLayer || [];
82+
function gtag() { window.dataLayer.push(arguments); }
83+
gtag('js', new Date());
84+
gtag('config', 'G-DFGXFEC380');
85+
}
86+
`,
87+
}}
88+
/>
89+
</Head>
90+
<body>
91+
<ThemeProvider attribute="class" defaultTheme="dark">
92+
<Layout
93+
navbar={navbar}
94+
pageMap={await getPageMap()}
95+
docsRepositoryBase="https://github.com/OpenExecProtocol/docs/edit/main"
96+
editLink="Edit this page on GitHub"
97+
sidebar={{ defaultMenuCollapseLevel: 1 }}
98+
footer={<Footer />}
99+
darkMode={false}
100+
>
101+
{children}
102+
</Layout>
103+
</ThemeProvider>
104+
</body>
105+
</html>
106+
);
107+
}

pages/index.mdx renamed to app/page.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
title: 'Open eXecution Protocol (OXP)'
3+
---
4+
15
# Introduction
26

37
The Open eXecution Protocol (OXP) is a comprehensive communication protocol for agents calling tools.

app/spec-1.0/_meta.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default {
2+
index: "Introduction",
3+
architecture: "Architecture",
4+
versioning: "Versioning",
5+
schemas: {
6+
title: "Schemas",
7+
},
8+
protocol: {
9+
title: "Protocol",
10+
},
11+
security: {
12+
title: "Security",
13+
},
14+
};
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)