feat: add docs robots.txt generation and doctor checks#173
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
@farming-labs/astro
@farming-labs/astro-theme
@farming-labs/docs
@farming-labs/theme
@farming-labs/next
@farming-labs/nuxt
@farming-labs/nuxt-theme
@farming-labs/svelte
@farming-labs/svelte-theme
@farming-labs/tanstack-start
commit: |
Contributor
There was a problem hiding this comment.
1 issue found across 14 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="website/app/docs/cli/page.mdx">
<violation number="1" location="website/app/docs/cli/page.mdx:454">
P3: The Doctor examples are internally inconsistent: the updated text sample uses a 105-point agent score, but the JSON sample still documents `maxScore: 100`.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| @farming-labs/docs doctor — agent | ||
|
|
||
| Score: 87/100 (Agent-ready) | ||
| Score: 92/105 (Agent-ready) |
Contributor
There was a problem hiding this comment.
P3: The Doctor examples are internally inconsistent: the updated text sample uses a 105-point agent score, but the JSON sample still documents maxScore: 100.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At website/app/docs/cli/page.mdx, line 454:
<comment>The Doctor examples are internally inconsistent: the updated text sample uses a 105-point agent score, but the JSON sample still documents `maxScore: 100`.</comment>
<file context>
@@ -412,14 +451,16 @@ Expected output:
@farming-labs/docs doctor — agent
-Score: 87/100 (Agent-ready)
+Score: 92/105 (Agent-ready)
Framework: nextjs • Entry: docs • Content: app/docs
Explicit agent-friendly pages: 10/41 pages (24%)
</file context>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary by cubic
Adds
docs robots generateto create an agent-friendly robots.txt and extends the doctor with local/hosted robots checks to prevent blocking agent routes and common AI crawlers. Improves docs and exports robots utilities so teams can configure, generate, and validate policies easily.New Features
docs robots generatewrites or appendsrobots.txt(supports--append,--force,--path,--check,--config); defaults to the framework’s public dir./robots.txt; flags blocked/missing routes and AI crawler policies; max score increases to 145 withrobotsandhosted-robotschecks.robotsindocs.config.ts(baseUrl, path, ai policy, extra rules). Robots helpers exported from@farming-labs/docs(render, analyze, upsert).Migration
robotstodocs.config.ts, then runpnpm exec docs robots generate. Use--appendto keep existing content or--forceto replace. Ensure/robots.txtis deployed and allows docs, markdown,llms.txt, sitemap, skill, MCP, and well-known agent routes.Written for commit 75c5e54. Summary will update on new commits.