Repository navigation
[src/docs] Fix broken links in source files and XML API docs - #25329
Conversation
- Update old Apple documentation URLs to modern developer.apple.com/documentation/ format in src/ C# files and docs/api/ XML files - Remove dead Xamarin links (developer.xamarin.com, docs.xamarin.com) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR attempts to modernize external documentation references across the Apple binding source files and generated XML API docs in dotnet/macios, so the published API docs point at current Apple pages and drop dead Xamarin links.
Changes:
- Rewrites many
externalDocumentationlinks insrc/from legacy Apple Library/Reference URLs todeveloper.apple.com/documentation/.... - Removes dead
developer.xamarin.com/docs.xamarin.comrecipe and article links from source comments and XML docs. - Updates a smaller set of
docs/api/XML files with newer Apple doc URLs for UIKit and AVFoundation types.
Reviewed changes
Copilot reviewed 42 out of 42 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
src/xkit.cs |
Updates Text Kit UIKit doc links. |
src/videosubscriberaccount.cs |
Updates VideoSubscriberAccount doc links. |
src/UIKit/UIGestureRecognizer.cs |
Updates gesture token doc links. |
src/UIKit/UIEnums.cs |
Removes dead collection-view article links. |
src/uikit.cs |
Updates UIPickerViewModel doc link. |
src/twitter.cs |
Updates Twitter doc links; removes dead recipe. |
src/safariservices.cs |
Updates SFSafariViewController doc link. |
src/quicklook.cs |
Updates QLPreviewItem doc link. |
src/passkit.cs |
Updates PKAddPassButton doc link. |
src/ObjCRuntime/TypeConverter.cs |
Updates Objective-C type encoding reference. |
src/NewsstandKit/Compat.cs |
Updates NewsstandKit doc links. |
src/GameplayKit/GKHybridStrategist.cs |
Updates GKHybridStrategist doc link. |
src/coreanimation.cs |
Updates CoreAnimation doc links. |
src/CloudKit/CKModifyBadgeOperation.cs |
Updates CKModifyBadgeOperation doc link. |
src/CloudKit/CKMarkNotificationsReadOperation.cs |
Updates CKMarkNotificationsReadOperation doc link. |
src/CloudKit/CKFetchNotificationChangesOperation.cs |
Updates CKFetchNotificationChangesOperation doc link. |
src/AVFoundation/Events.cs |
Updates AVAudioPlayer event-doc link. |
src/AVFoundation/AVSpeechUtterance.cs |
Updates AVSpeechUtterance doc link. |
src/AVFoundation/AVAudioSessionPortDescription.cs |
Updates audio session port doc link. |
src/AVFoundation/AVAudioSessionDataSourceDescription.cs |
Updates audio data source doc link. |
src/AVFoundation/AVAudioPlayer.cs |
Updates AVAudioPlayer doc link. |
src/AVFoundation/AVAudioFormat.cs |
Updates AVAudioFormat doc link. |
src/AVFoundation/AVAudioChannelLayout.cs |
Updates AVAudioChannelLayout doc link. |
src/AVFoundation/AVAudioBuffer.cs |
Updates AVAudioBuffer doc link. |
src/avfoundation.cs |
Bulk AVFoundation doc URL refresh. |
docs/api/UIKit/UIWebView.xml |
Removes dead Xamarin recipes. |
docs/api/UIKit/UIView.xml |
Removes dead UIView recipe links. |
docs/api/UIKit/UICollectionViewLayoutAttributes.xml |
Removes dead collection-view article. |
docs/api/UIKit/UICollectionViewLayout.xml |
Removes dead collection-view article. |
docs/api/UIKit/UICollectionViewFlowLayout.xml |
Removes dead collection-view article. |
docs/api/UIKit/UICollectionViewDelegate.xml |
Removes dead collection-view article. |
docs/api/UIKit/UICollectionViewCell.xml |
Removes dead collection-view article. |
docs/api/UIKit/UICollectionView.xml |
Removes dead collection-view article. |
docs/api/UIKit/NSTextStorage.xml |
Updates NSTextStorage Apple doc link. |
docs/api/UIKit/NSTextContainer.xml |
Updates NSTextContainer Apple doc link. |
docs/api/UIKit/NSLayoutManager.xml |
Updates NSLayoutManager Apple doc link. |
docs/api/CoreAnimation/CALayer.xml |
Removes dead animation recipe links. |
docs/api/AVFoundation/AVSpeechSynthesizer.xml |
Updates AVSpeechSynthesizer Apple doc link. |
docs/api/AVFoundation/AVAudioSession.xml |
Updates AVAudioSession Apple doc link. |
docs/api/AVFoundation/AVAudioRecorder.xml |
Updates AVAudioRecorder doc link and trims recipes. |
docs/api/AddressBookUI/ABPeoplePickerNavigationController.xml |
Removes dead contact recipe links. |
docs/api/AddressBook/ABPerson.xml |
Removes dead contact recipe links. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Update old/broken Apple documentation URLs to their correct modern equivalents, and remove links for deprecated types that no longer have Apple documentation pages. Key changes: - AVFoundation audio types: use avfaudio framework URLs - CoreAnimation: use quartzcore framework URLs - Fix mixed-case URL slugs (VideoSubscriberAccount) - Remove links for deprecated CloudKit, NewsstandKit, Twitter types - Remove links for .NET-internal types (UIPickerViewModel, gesture tokens) - Update ObjC type encodings to Apple archive URL - Remove dead Xamarin recipe links All 69 new Apple URLs verified to return HTTP 200. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Re-add Apple doc links for UIGestureRecognizer Token subclasses, pointing to the parent UIGestureRecognizer page - Remove extra whitespace between '/// ' and '<related' on modified links - Remove empty '///' comment lines adjacent to removed links Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #6a37d80] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #6a37d80] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [PR Build #6a37d80] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #6a37d80] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 169 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
developer.apple.com/documentation/formatin
src/C# files anddocs/api/XML filesdeveloper.xamarin.com,docs.xamarin.com)avfaudio, CoreAnimation →quartzcore)UIPickerViewModel, gesture recognizer tokens)🤖 Pull request created by Copilot