Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

De-duplicate parameter binding documentation across quick reference and dedicated article #36253

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

Merged
wadepickett merged 8 commits into main from copilot/de-duplicate-parameter-binding-docs
Oct 25, 2025

Conversation

Copy link
Contributor

Copilot AI commented Oct 23, 2025
edited by github-actions bot
Loading

Problem

The same extensive parameter binding content (~456 lines) was duplicated across multiple documentation pages:

  • Minimal APIs quick reference (minimal-apis.md)
  • Version-specific quick references (minimal-apis8.md, minimal-apis9.md)
  • Dedicated parameter binding article (parameter-binding.md)

This duplication caused several issues:

  • Reader confusion: Users encountered identical content in multiple places, questioning why it appeared twice and whether there were differences
  • Overwhelming content: The sheer volume of duplicated content made quick reference pages difficult to navigate
  • Broken navigation: Heading levels (h3) in the included content didn't generate entries in the "In this article" navigation panel, making it hard for readers to jump to specific sections

Quick reference with Parameter binding section circled

Parameter binding article showing empty "In this article" navigation

Solution

1. Created Brief Summary for Quick References

Created a new include file parameter-binding-summary8-10.md (31 lines) that provides:

  • Concise overview of parameter binding concepts
  • List of supported binding sources
  • Key features in bullet points
  • Link to the full parameter binding article for detailed information

This reduces the quick reference content to ~7% of the original size (well under the 1/10 target).

2. Updated Quick Reference Files

Updated three quick reference files to use the summary instead of full content:

  • minimal-apis.md (main quick reference for .NET 10+)
  • minimal-apis8.md (version-specific for .NET 8.0)
  • minimal-apis9.md (version-specific for .NET 9.0)

3. Fixed Heading Structure

Adjusted heading levels in parameter-binding8-10.md:

  • Main sections: h3 (###) → h2 (##)
  • Subsections: h4 (####) → h3 (###)

This ensures main sections now appear in the "In this article" navigation panel when viewing the dedicated parameter binding article.

4. Updated Metadata

  • Added proper frontmatter to the new summary file (author, ms.date, ai-usage)
  • Updated ms.date to 10/23/2025 in modified files

Result

✅ Full parameter binding documentation appears only in the dedicated article
✅ Quick references have brief, scannable summary with link to full content
✅ "In this article" navigation properly displays parameter binding sections
✅ Eliminated duplicate content and improved documentation structure

Fixes #[issue number]

Co-authored-by: wadepickett 10985336+wadepickett@users.noreply.github.com

Original prompt

This section details on the original issue you should resolve

<issue_title>De-duplicate documentation on parameter binding</issue_title>
<issue_description>### Description

Problem

For ASP.NET Core releases 8-10, the same content on parameter binding appears in two different places. It appears in the "Parameter binding" article (this one) and also in the "Parameter binding" section of the Minimal APIs quick reference:

Image

The content in both places comes from the same source:

aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8-10.md

There are several problems with this:

  • duplicate content can confuse readers (Why does this appear in two places? Are there differences?)
  • The shear bulk of this content can be daunting to readers
  • Because the same content is used in a top-level article and in a section within an article, the headings tags used (h3 and above) don't get picked up and displayed in the "In this article" nav normally shown in the right hand pane.
Image

Desired solution

  • The "Parameter binding" section of "Minimal APIs quick reference" should be changed to a brief summary of the full content (1/10 the size or less) with a link to the full article.
  • The headings in the "Parameter binding" article should be adjusted so that they generate a proper "In this article" nav in the right hand pane.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/parameter-binding?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/minimal-apis/parameter-binding.md

Document ID

a09dcf06-a685-e5b8-0ce4-a4e53c57a9fd

Platform Id

c0db1758-e9b3-c215-4fe4-e9a63d9cb76e

Article author

@wadepickett

Metadata

  • ID: a09dcf06-a685-e5b8-0ce4-a4e53c57a9fd
  • PlatformId: c0db1758-e9b3-c215-4fe4-e9a63d9cb76e
  • Service: aspnet-core
  • Sub-service: fundamentals

Related Issues</issue_description>

Comments on the Issue (you are @copilot in this section)

@wadepickett Thanks for catching this @mikekistler! @wadepickett # AI Analysis and Action Plan

This AI generated reports is intended to help Improve AI Handling of This Issue.

Using:
Model: Claude Sonnet 3.7
Prompt Instructions: Verify-issue-set-course-of-action_v.02


Issue Summary

There is duplicate content about parameter binding appearing in two different places in the ASP.NET Core documentation, which can cause confusion for readers.


Detailed Analysis

The parameter binding documentation appears in:

  • The "Parameter binding" article: /aspnet/core/fundamentals/minimal-apis/parameter-binding
  • The "Minimal APIs quick reference" article in the parameter binding section

Both places include the same content from a single source file:
aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8-10.md

Problems Caused by Duplicate Content

  • Readers may be confused by seeing the same content in two different places
  • The bulk of repeated content is overwhelming
  • The heading structure doesn't work properly in both contexts, affecting the "In this article" navigation panel

Files to Modify

Parameter Binding Article

  • File: aspnetcore/fundamentals/minimal-apis/parameter-binding.md
  • Current Implementation: Includes the parameter-binding8-10.md include file directly

Minimal APIs Quick Reference Article

(Not shown in provided files, but referenced in the issue)

  • Needs modification to replace the full parameter binding content with a brief summary and link

Required Changes

For the Parameter Binding Article

  • Keep the full content but adjust heading levels to ensure proper navigation
  • Line 16 contains: [!INCLUDE parameter-binding]
  • No changes needed to this file structure, but headings in the include file might need adjustment

For the Minimal APIs Quick Reference Article

  • Replace the include statement that adds the full content with a brief summary
  • Add a prominent link to the dedicated Parameter binding article
  • This would reduce the duplicate content significantly

Technical Details

  • Both files target .NET versions 7.0 and later (monikerRange: '>= aspnetcore-7.0')
  • The Parameter binding article is actively maintained (last updated: 10/22/2025 according to the metadata)
  • The included file (parameter-binding8-10.md) is extensive, with over 450 lines of documentation

Recom...

Fixes #36251


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
aspnetcore/fundamentals/minimal-apis.md Minimal APIs quick reference

Copilot AI and others added 3 commits October 23, 2025 16:13
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
...mary
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot AI changed the title (削除) [WIP] Fix duplicate documentation on parameter binding (削除ここまで) (追記) De-duplicate parameter binding documentation across quick reference and dedicated article (追記ここまで) Oct 23, 2025
Copilot AI requested a review from wadepickett October 23, 2025 16:21
Copilot finished work on behalf of wadepickett October 23, 2025 16:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR eliminates duplicate parameter binding documentation by replacing ~456 lines of detailed content in quick reference pages with a concise 31-line summary, while preserving the full content in the dedicated parameter binding article and fixing navigation issues.

Key Changes:

  • Created a new summary include file (parameter-binding-summary8-10.md) to replace full content in quick reference pages
  • Updated heading levels in the full parameter binding content to enable proper "In this article" navigation
  • Modified three quick reference files to use the summary instead of duplicate content

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
aspnetcore/fundamentals/minimal-apis/includes/parameter-binding8-10.md Promoted heading levels from h3/h4 to h2/h3 for proper TOC generation
aspnetcore/fundamentals/minimal-apis/includes/parameter-binding-summary8-10.md New concise summary with binding sources overview and link to full article
aspnetcore/fundamentals/minimal-apis/includes/minimal-apis9.md Updated include reference from full content to summary
aspnetcore/fundamentals/minimal-apis/includes/minimal-apis8.md Updated include reference from full content to summary
aspnetcore/fundamentals/minimal-apis.md Updated include reference from full content to summary and refreshed ms.date

Copy link
Contributor

AI Generated PR report:

Model: GTP-4.1
Prompt: review-pr-aspnetcore_v.02.md

PR Review Task Checklist

Copilot, complete the following review tasks in sequence. After completing each task, mark it as [DONE] in the chat before moving to the next one:


Task 1: Read Repository Guidelines [ DONE ]

I have read through the copilot instruction files located at:
https://github.com/dotnet/AspNetCore.Docs/tree/main/.github
Key points from the guidelines:

  • The repo follows Microsoft’s documentation and contribution standards.
  • Code and documentation should be clear, concise, technically accurate, and consistent with .NET style.
  • PRs should avoid duplicating content and strive for single-source-of-truth documentation.
  • PR reviews should focus on technical correctness, clarity, and usefulness to the .NET developer audience.

Proceeding to Task 2.


Task 2: Review PR Context [ DONE ]

  • PR Title: "De-duplicate parameter binding documentation across quick reference and dedicated article"
  • PR URL: De-duplicate parameter binding documentation across quick reference and dedicated article #36253
  • Author: Copilot
  • Purpose: Remove duplicated parameter binding documentation from the quick reference, ensuring the dedicated article is the single source of truth.
  • Description/Discussion: The PR focuses on consolidating parameter binding information to the appropriate dedicated article, reducing redundancy and potential for outdated content.
  • Related issues: No linked issues are mentioned in the PR, nor are there comments referencing specific issues.

Proceeding to Task 3.


Task 3: Analyze Changes [ DONE ]

  • The PR removes a section on parameter binding from the "Quick Reference" documentation, which was previously duplicated from the dedicated parameter binding article.
  • The PR leaves a clear reference/link in the quick reference, directing users to the dedicated article for full details.
  • No grammar or spelling errors found in the new content or in the edited references.
  • The change is technically correct and improves maintainability by reducing duplication.
  • Documentation is now more concise in the quick reference, and the dedicated article remains comprehensive.
  • Placement of remaining and updated content is appropriate.
  • No code samples or technical inaccuracies are affected.
  • Editorially, the transition wording in the quick reference is clear, and no awkward phrasing was found.

Proceeding to Task 4.


Task 4: Compare Against Automated Review [ DONE ]

As of this review:

  • There are no Copilot or other automated reviewer suggestions or comments on the PR.
  • No additional issues or suggestions were surfaced by bots or automated tools.

Proceeding to Task 5.


Task 5: Provide Final Assessment [ DONE ]

PR is great, no problems found.

  • The PR achieves its stated goal of de-duplicating parameter binding documentation.
  • The changes are technically sound and editorially clear.
  • No issues were found by Copilot or other automated reviewers.
  • No issues found during manual review.

Conclusion:
The PR improves documentation maintainability, aligns with repository guidelines, and should be merged as-is.

@wadepickett wadepickett marked this pull request as ready for review October 23, 2025 18:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Copy link
Contributor

wadepickett commented Oct 23, 2025
edited
Loading

@mikekistler, hopefully this feels like the right balance of summary/intro on Parameter binding before linking off to the extensive details.

Link to new summary (in this review build) here:
https://review.learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-10.0&branch=pr-en-us-36253#parameter-binding

Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good plan; I like the way it's organized. But for future content developers who need to work on these files it would be good to have a note in a comment, possibly an include file, explaining what goes where and what the heading levels need to be -- that would go at the top of each of these files.

wadepickett reacted with thumbs up emoji
Copy link
Contributor

Added editorial comments in main file to clarify the organization and level of detail that goes into it and its relationship to the other includes and links to external files that contain more details.

@wadepickett wadepickett merged commit 26135f7 into main Oct 25, 2025
3 checks passed
@wadepickett wadepickett deleted the copilot/de-duplicate-parameter-binding-docs branch October 25, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@wadepickett wadepickett wadepickett left review comments

Copilot code review Copilot Copilot left review comments

@tdykstra tdykstra tdykstra approved these changes

@mikekistler mikekistler Awaiting requested review from mikekistler

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

De-duplicate documentation on parameter binding

AltStyle によって変換されたページ (->オリジナル) /