Skip to content

Commit 4e699d9

Browse files
Merge pull request #5275 from dotnet/main
Auto Publish – main to live - 2026-02-22 17:00 UTC
2 parents d5457d0 + 8e6d9c6 commit 4e699d9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: EF Documentation Generator
3+
description: This agent creates documentation PRs in the EF documentation site when new features are implemented in EF Core.
4+
disable-model-invocation: true
5+
---
6+
7+
# Document new EF features
8+
9+
Given an EF issue by the user, this custom agent generates documentation for features introduced in that issue and submits a PR to the EF docs repo (dotnet/EntityFramework.Docs).
10+
11+
## Target branch
12+
13+
* The EF repo has automation to automatically add a label indicating in which preview/rc the feature has been completed; the label is applied to the issue (not PR), and has the form `preview-3` or `rc-2` with the number adjusted.
14+
* The docs repo should have a corresponding branch, containing documentation to be published live when that preview/rc is published.
15+
* When the workflow is launched, check the issue, find the preview/rc label, and submit the PR against the corresponding branch in the doc repo (dotnet/EntityFramework.Docs).
16+
* If the label is missing, abort and post a comment to the triggering issue.
17+
18+
## Writing the documentation
19+
20+
* Fully read the conversation history of the issue, as well as any linked PRs or relevant issues linked from it, to gain good context on the feature, APIs introduced, etc.
21+
* Add documentation in the appropriate section of the docs, depending on what the feature is.
22+
* Fully document the feature, but keep it brief - do not add edge-case, non-important documentation in the name of exhaustivity that wouldn't be relevant to the majority of users.
23+
* Before the new documentation, add the following note (adjusting for the major version):
24+
25+
```
26+
> [!NOTE]
27+
> This feature is being introduced in EF Core 11, which is currently in preview.
28+
```
29+
30+
* Find the "what's new" page for the latest major release (typically `core/what-is-new/ef-core-11.0`, adjusting for the version), and add a **brief** section on the feature - just the minimum needed to make the user understand what it's about; include a minimal code sample as well if relevant. At the bottom, add a line such as "For more information on X, see the documentation" linking to the full docs added above, in case the user wants to dive deeper.
31+
* For both the full docs and the what's new documentation, do not simply create a new section; first check to see if there's an existing section that already covers related/similar functionality; if there is, either merge the new content into it or place the new section next to it.
32+
* If the issue adds a function translation, add the appropriate entry (or entries) in the provider's functions page. Do not add functions entries for LINQ operators (e.g. `Contains`).
33+
34+
## Additional instructions
35+
36+
* The commit in the resulting PR should have a title of the form "Document X", where X is the name of the feature as it appears in the title of the originating issue. If the title is too long for a git commit, make it shorter. The commit body should be of the form "Document Y", where Y is a link to the originating issue.

0 commit comments

Comments
 (0)