Replace agent directive snippet with per-page directive in docs.yml#4751
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Replace agent directive snippet with per-page directive in docs.yml#4751devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Remove <Markdown src="/snippets/agent-directive.mdx"/> from all 315 files - Add agents.page-directive to docs.yml with the snippet text - Delete the agent-directive.mdx snippet file - Update AGENTS.md to reflect the new approach Co-Authored-By: bot_apk <apk@cognition.ai>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
Requested by: devin |
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
Migrates the agent directive from a manually-included snippet (
<Markdown src="/snippets/agent-directive.mdx"/>) to the newagents.page-directivesetting indocs.yml. This means the directive text is now injected automatically by the docs engine on every page, eliminating the need to include it in each file individually.Changes:
fern/docs.yml: Addedagents.page-directivewith the directive text previously in the snippet<Markdown src="/snippets/agent-directive.mdx"/>linefern/snippets/agent-directive.mdx: DeletedAGENTS.md: Updated "New pages" section to reflect that the directive is now automaticReview & Testing Checklist for Human
agents.page-directiveis a supported and deployed feature — if the docs engine doesn't process this key yet, all pages lose their agent directive with no replacement. Check that a deployed preview still serves the directive text when fetching a page as Markdown (append.mdto any page URL).docs.ymlmatches the original snippet content exactly (the text: "For clean Markdown content of this page, append .md to this URL...")fern/products/sdks/snippets/basic-auth-params.mdxalso had the snippet removed. Verify these transcluded snippets don't need their own directive.Notes
Link to Devin session: https://app.devin.ai/sessions/cca428aa2de14fe390a4361c2a6ac8d2