-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
136 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { metadataImage } from "@/lib/docs/metadata"; | ||
import { generateOGImage } from "fumadocs-ui/og"; | ||
|
||
export const GET = metadataImage.createAPI((page) => { | ||
return generateOGImage({ | ||
title: page.data.title, | ||
description: page.data.description, | ||
site: "Rehooks", | ||
}); | ||
}); | ||
|
||
export function generateStaticParams() { | ||
return metadataImage.generateParams(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { MetadataRoute } from "next"; | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: "*", | ||
allow: ["/", "/docs/cli", "/docs/api", "/blog"], | ||
}, | ||
sitemap: "https://rehooks.dev", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { source } from "@/lib/docs/source"; | ||
import { DOCS_URL } from "@rehooks/utils"; | ||
import type { MetadataRoute } from "next"; | ||
|
||
export const revalidate = false; | ||
|
||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> { | ||
const url = (path: string) => new URL(path, DOCS_URL).toString(); | ||
|
||
return [ | ||
{ | ||
url: url("/"), | ||
changeFrequency: "monthly", | ||
priority: 1, | ||
}, | ||
{ | ||
url: url("/docs/cli"), | ||
changeFrequency: "weekly", | ||
priority: 0.8, | ||
}, | ||
{ | ||
url: url("/docs/api"), | ||
changeFrequency: "weekly", | ||
priority: 0.8, | ||
}, | ||
{ | ||
url: url("/blog"), | ||
changeFrequency: "monthly", | ||
priority: 0.6, | ||
}, | ||
...(await Promise.all( | ||
source.getPages().map(async (page) => { | ||
const { lastModified } = page.data; | ||
|
||
return { | ||
url: url(page.url), | ||
lastModified: lastModified ? new Date(lastModified) : undefined, | ||
changeFrequency: "weekly", | ||
priority: 0.5, | ||
} as MetadataRoute.Sitemap[number]; | ||
}), | ||
)), | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"husky": "^9.1.6", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-tailwindcss": "^0.6.8", | ||
"turbo": "^2.3.3", | ||
"turbo": "^2.4.0", | ||
"typescript": "5.6.3" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const BASE_URL = "https://rehooks.pyr33x.ir/api"; | ||
export const BASE_URL = "https://rehooks.dev/api"; | ||
export const SRC_DIR_PLACEHOLDER = "./src/hooks"; | ||
export const DIR_PLACEHOLDER = "./hooks"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const GITHUB_LINK = "https://github.com/pyr33x/rehooks"; | ||
export const REHOOKS_NPM = "https://www.npmjs.com/package/rehooks-cli"; | ||
export const DOCS_URL = "https://rehooks.dev"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8bb7222
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
rehooks – ./
rehooks.dev
rehooks-darly.vercel.app
rehooks-git-main-darly.vercel.app
www.rehooks.dev
rehooks-ts.vercel.app
rehooks.pyr33x.ir