-
Notifications
You must be signed in to change notification settings - Fork 328
fix(website): improve agent readability score #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aidenybai
wants to merge
13
commits into
main
Choose a base branch
from
cursor/fix-agent-readability-aed3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
712fa94
fix(website): rewrite llms.txt to follow llmstxt.org format
cursoragent b407123
feat(website): add markdown mirrors for each page
cursoragent 0213fbc
feat(website): add Next.js proxy for agent content negotiation
cursoragent 886aaf8
feat(website): add JSON-LD, canonical URL, markdown alternate, skip link
cursoragent 9c1b3f5
feat(website): use semantic headings & main landmark on every page
cursoragent 3d0acc4
fix(website): skip empty <h3> when changelog entry has no change type
cursoragent bb1eda0
docs(website): import next/script in Next.js Pages Router snippet
cursoragent 5f994eb
fix(website): drop hardcoded /index.md alternate from root layout
cursoragent b81cc95
fix(website): scope Vary: Accept, User-Agent to proxy responses only
cursoragent 8c269bb
fix(website): drop duplicate www redirect from next.config.ts
cursoragent 94f54f8
fix(website): remove proxy-level www -> apex redirect to avoid loop
cursoragent 3c9cb45
fix(website): scope canonical & markdown alternate to each page
cursoragent 903f7b9
refactor(website): extract shared discoverPageRoutes utility
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
| import { readFileSync } from "fs"; | ||
| import { join } from "path"; | ||
| import { parseChangelog } from "@/utils/parse-changelog"; | ||
|
|
||
| const BASE_URL = "https://react-grab.com"; | ||
|
|
||
| export const dynamic = "force-static"; | ||
|
|
||
| export const GET = (): Response => { | ||
| const changelogPath = join(process.cwd(), "..", "..", "packages", "react-grab", "CHANGELOG.md"); | ||
| const content = readFileSync(changelogPath, "utf-8"); | ||
| const entries = parseChangelog(content); | ||
|
|
||
| const lines: string[] = []; | ||
| lines.push("# Changelog"); | ||
| lines.push(""); | ||
| lines.push("> Release notes and version history for React Grab."); | ||
| lines.push(""); | ||
| lines.push(`See the [HTML changelog](${BASE_URL}/changelog) for the rendered version.`); | ||
| lines.push(""); | ||
|
|
||
| for (const entry of entries) { | ||
| lines.push(`## ${entry.version}`); | ||
| lines.push(""); | ||
| if (entry.changeType) { | ||
| lines.push(`*${entry.changeType}*`); | ||
| lines.push(""); | ||
| } | ||
| for (const change of entry.changes) { | ||
| lines.push(`- ${change}`); | ||
| } | ||
| lines.push(""); | ||
| } | ||
|
|
||
| return new Response(lines.join("\n"), { | ||
| headers: { | ||
| "Content-Type": "text/markdown; charset=utf-8", | ||
| "Cache-Control": "public, max-age=300, s-maxage=300", | ||
| }, | ||
| }); | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.