Skip to content

Commit 41e12d1

Browse files
committed
Updates
1 parent 600fdc3 commit 41e12d1

File tree

3 files changed

+133
-9
lines changed

3 files changed

+133
-9
lines changed

app/routes/docs.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function Header() {
159159
</div>
160160
<div className="flex items-center gap-2">
161161
<HeaderLink
162-
href="https://github.com/remix-run/remix"
162+
href="https://github.com/remix-run/remix/tree/v2"
163163
svgId="github"
164164
label="View code on GitHub"
165165
title="View code on GitHub"
@@ -656,16 +656,12 @@ function MenuLink({ to, children }: { to: string; children: React.ReactNode }) {
656656

657657
function EditLink() {
658658
let doc = useDoc();
659-
let params = useParams();
660-
let isEditableRef = params.ref === "main" || params.ref === "dev";
661-
662-
if (!doc || !isEditableRef) {
659+
if (!doc) {
663660
return null;
664661
}
665662

666-
let repoUrl = "https://github.com/remix-run/remix";
667-
// TODO: deal with translations when we add them with params.lang
668-
let editUrl = `${repoUrl}/edit/${params.ref}/${doc.slug}.md`;
663+
let repoUrl = "https://github.com/remix-run/remix-v2-website";
664+
let editUrl = `${repoUrl}/edit/main/data/${doc.slug}.md`;
669665

670666
return (
671667
<a className="flex items-center gap-1 hover:underline" href={editUrl}>

package-lock.json

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "react-router build",
1111
"dev": "react-router dev",
1212
"format": "prettier --write ./",
13-
"start": "cross-env NODE_ENV=production react-router-serve build/server/index.js",
13+
"start": "sirv -p 5173 build/client",
1414
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
1515
"lint:fix": "npm run lint -- --fix",
1616
"test": "vitest",
@@ -47,6 +47,7 @@
4747
"remark-rehype": "^11.1.0",
4848
"satori": "^0.10.14",
4949
"shiki": "^0.14.7",
50+
"sirv-cli": "^3.0.1",
5051
"svg2img": "^1.0.0-beta.2",
5152
"tiny-invariant": "^1.3.1",
5253
"tween-functions": "^1.2.0",

0 commit comments

Comments
 (0)