-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Part 2 of the PackageDescription DocC documentation update #4277
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
Part 2 of the PackageDescription DocC documentation update #4277
Conversation
Catching up to main.
Catching up to main.
@swift-ci please smoke test. |
@@ -182,7 +181,7 @@ public struct CXXSetting: Encodable { | |||
private init(name: String, value: [String], condition: BuildSettingCondition?) { | |||
self.data = BuildSettingData(name: name, value: value, condition: condition) | |||
} | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace-only line
public static func linkedLibrary(_ library: String, _ condition: BuildSettingCondition? = nil) -> LinkerSetting { | ||
return LinkerSetting(name: "linkedLibrary", value: [library], condition: condition) | ||
} | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace-only line
@@ -51,39 +58,40 @@ public struct Resource: Encodable { | |||
self.path = path | |||
self.localization = localization | |||
} | |||
|
|||
/// Applies a platform-specific rule to the resource at the given path. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace-only line
|
||
/// Applies a platform-specific rule to the resource at the given path. | ||
/// Apply platform-specific rules to the resource at the given path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the convention is using 3rd-person present tense, so "Applies" instead of "Apply"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thank you!
@swift-ci please smoke test. |
@@ -127,10 +130,8 @@ public struct CSetting: Encodable { | |||
/// | |||
/// The path must be a directory inside the package. | |||
/// | |||
/// - Since: First available in PackageDescription 5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this and the other "Since"s really get removed? In the corresponding PR 1, it seemed that they were getting preserved since they convey useful information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added all of them back in.
@swift-ci please smoke test. |
@swift-ci please smoke test. |
…#4277) * Part 2 of the documentation update. * Adopted some of the comments from the companion PR swiftlang#4276. * A few minor edits to the DocC documentation comments. * More minor edits. * Another minor edit. * Removed some unwanted blank-space. * Changed "apply" to 3rd person present tense. * Removed blank-space. * Fixed a typo/ * Added back the Since docs that were deleted. Co-authored-by: Zsolt Kiraly <[email protected]>
* Part 2 of the documentation update. * Adopted some of the comments from the companion PR #4276. * A few minor edits to the DocC documentation comments. * More minor edits. * Another minor edit. * Removed some unwanted blank-space. * Changed "apply" to 3rd person present tense. * Removed blank-space. * Fixed a typo/ * Added back the Since docs that were deleted. Co-authored-by: Zsolt Kiraly <[email protected]>
Part 2: Update DocC documentation in the PackageDescription library. Only
Target
,Product
, and symbols curated under those two are in the PR.Motivation:
The DocC documentation in PackageDescription was not complete, and was out of sync with (and in some cases ahead of) Apple's documentation at developer.apple.com.
Modifications:
Many DocC documentation comments were added or changed inside Sources/PackageDescription.
Result:
There was no code change. Only source code comments were changed in Sources/PackageDescription, and DocC extension files were added in the documentation catalog in that directory.