Skip to content

Commit 551b7d5

Browse files
authored
docs: update landing page (#313)
This PR refreshes the docs landing experience and updates related documentation content. It introduces a new interactive homepage presentation, replaces/reshapes key guide content, and aligns docs deployment/configuration for the updated setup.
1 parent d52031a commit 551b7d5

22 files changed

Lines changed: 4015 additions & 524 deletions

.github/workflows/docs.yml

Lines changed: 0 additions & 82 deletions
This file was deleted.

docs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
"@docsearch/react": "3",
1414
"@lazarv/react-server": "workspace:^",
1515
"@uidotdev/usehooks": "^2.4.1",
16-
"@vercel/analytics": "^1.4.1",
17-
"@vercel/speed-insights": "^1.1.0",
1816
"algoliasearch": "^4.24.0",
1917
"highlight.js": "^11.9.0",
2018
"lucide-react": "^0.408.0",
2119
"rehype-highlight": "^7.0.0",
2220
"rehype-mdx-code-props": "^3.0.1",
2321
"remark-gfm": "^4.0.0",
22+
"three": "^0.183.1",
2423
"vite-plugin-svgr": "^4.5.0"
2524
},
2625
"devDependencies": {

docs/react-server.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
root: "src/pages",
77
public: "public",
88
adapter: [
9-
"vercel",
9+
"cloudflare",
1010
{
1111
serverlessFunctions: false,
1212
},

docs/react-server.wrangler.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[routes]]
2+
pattern = "react-server.dev/*"
3+
zone_name = "react-server.dev"

docs/src/components/CopyToClipboard.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import { useEffect, useRef, useState } from "react";
44

55
import { useCopyToClipboard } from "@uidotdev/usehooks";
6-
import { track } from "@vercel/analytics";
76
import { Copy } from "lucide-react";
87

9-
export default function CopyToClipboard({ filename }) {
8+
export default function CopyToClipboard() {
109
const ref = useRef();
1110
const [, copyToClipboard] = useCopyToClipboard();
1211
const [copiedText, setCopiedText] = useState("");
@@ -40,11 +39,8 @@ export default function CopyToClipboard({ filename }) {
4039
: code.textContent;
4140
setCopiedText(text);
4241
copyToClipboard(text);
43-
track("CopyToClipboard", {
44-
filename,
45-
});
4642
}}
47-
className="absolute right-2 bottom-10"
43+
className="absolute top-2 right-2"
4844
aria-label="Copy to clipboard"
4945
>
5046
<Copy size={24} className="stroke-white" />

0 commit comments

Comments
 (0)