Skip to content

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

Merged
merged 14 commits into from
Apr 23, 2022

Conversation

zkiraly
Copy link
Contributor

@zkiraly zkiraly commented Mar 31, 2022

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.

@zkiraly zkiraly marked this pull request as ready for review April 20, 2022 23:20
@zkiraly
Copy link
Contributor Author

zkiraly commented Apr 20, 2022

@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)
}

Copy link
Contributor

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)
}

Copy link
Contributor

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.

Copy link
Contributor

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.
Copy link
Contributor

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"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thank you!

@zkiraly
Copy link
Contributor Author

zkiraly commented Apr 22, 2022

@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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@zkiraly
Copy link
Contributor Author

zkiraly commented Apr 22, 2022

@swift-ci please smoke test.

@zkiraly
Copy link
Contributor Author

zkiraly commented Apr 23, 2022

@swift-ci please smoke test.

@zkiraly zkiraly merged commit 5d9202f into swiftlang:main Apr 23, 2022
zkiraly added a commit to zkiraly/swift-package-manager that referenced this pull request Apr 23, 2022
…#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]>
tomerd pushed a commit that referenced this pull request Apr 23, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants