Skip to content

Commit 8b048f3

Browse files
docs: nextra integration
1 parent aed775c commit 8b048f3

18 files changed

+3951
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@ android/keystores/debug.keystore
7676

7777
# generated by bob
7878
lib/
79+
80+
.yarn
81+
.next

docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# docs

docs/next.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const withNextra = require('nextra')({
2+
theme: 'nextra-theme-docs',
3+
themeConfig: './theme.config.jsx',
4+
});
5+
6+
module.exports = withNextra();

docs/package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "docs",
3+
"packageManager": "yarn@3.6.4",
4+
"dependencies": {
5+
"next": "^14.2.6",
6+
"nextra": "^2.13.4",
7+
"nextra-theme-docs": "^2.13.4",
8+
"react": "^18.3.1",
9+
"react-dom": "^18.3.1"
10+
},
11+
"scripts": {
12+
"dev": "next",
13+
"build": "next build",
14+
"start": "next start"
15+
}
16+
}

docs/pages/_meta.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"index": "Introduction",
3+
"installation": "Installation",
4+
"usage": "Usage",
5+
"apidetails": "API",
6+
"---": {
7+
"type": "separator"
8+
},
9+
"examples": "Examples"
10+
}

docs/pages/apidetails.md

Whitespace-only changes.

docs/pages/examples/_meta.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"realtimedetection": "Real-time detection"
3+
}

docs/pages/examples/realtimedetection.md

Whitespace-only changes.

docs/pages/index.md

Whitespace-only changes.

docs/pages/installation.md

Whitespace-only changes.

docs/pages/installation/_meta.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"visioncamera": "Vision Camera Integration",
3+
"worklets": "Worklets integration"
4+
}

docs/pages/installation/visioncamera.md

Whitespace-only changes.

docs/pages/installation/worklets.md

Whitespace-only changes.

docs/pages/usage.md

Whitespace-only changes.

docs/theme.config.jsx

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
const logo = () => {
2+
return (
3+
<span style={{ display: 'flex', alignItems: 'center', columnGap: 10 }}>
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="38.36"
7+
height="35.979"
8+
viewBox="0 0 38.36 35.979"
9+
>
10+
<g id="opencv-icon" transform="translate(0)">
11+
<path
12+
id="Path_16"
13+
data-name="Path 16"
14+
d="M-7.119,4.2A8.289,8.289,0,0,1-10.981-5.12a8.289,8.289,0,0,1,8.006-6.143A8.289,8.289,0,0,1,5.032-5.12,8.289,8.289,0,0,1,1.17,4.2l-2.5-4.323A3.3,3.3,0,0,0,.211-3.828,3.3,3.3,0,0,0-2.975-6.272,3.3,3.3,0,0,0-6.16-3.828,3.3,3.3,0,0,0-4.623-.119Z"
15+
transform="translate(23.58 11.263)"
16+
fill="#fff"
17+
/>
18+
<path
19+
id="Path_17"
20+
data-name="Path 17"
21+
d="M4.145,15.467a8.289,8.289,0,1,1,8.289,0l-2.5-4.323a3.3,3.3,0,1,0-3.3,0Z"
22+
transform="translate(38.36 32.945) rotate(180)"
23+
fill="#fff"
24+
/>
25+
<path
26+
id="Path_18"
27+
data-name="Path 18"
28+
d="M4.145,15.468a8.289,8.289,0,1,1,8.289,0l-2.5-4.323a3.3,3.3,0,1,0-3.3,0Z"
29+
transform="translate(8.29 35.979) rotate(-119.998)"
30+
fill="#fff"
31+
/>
32+
</g>
33+
</svg>
34+
<span style={{ fontWeight: '700' }}>React Native Fast OpenCV</span>
35+
</span>
36+
);
37+
};
38+
39+
export default {
40+
logo,
41+
project: {
42+
link: 'https://github.com/shuding/nextra',
43+
},
44+
// ... other theme options
45+
};

0 commit comments

Comments
 (0)