-
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
Merged
zkiraly
merged 14 commits into
swiftlang:main
from
zkiraly:zkiraly/documentation-update-2
Apr 23, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
367edd8
Part 2 of the documentation update.
b4f5aee
Merge branch 'main' into zkiraly/documentation-update-2
2a74e86
Adopted some of the comments from the companion PR https://github.com…
41a538f
A few minor edits to the DocC documentation comments.
520b3a6
More minor edits.
f7d879b
Another minor edit.
1a2498d
Merge branch 'main' into zkiraly/documentation-update-2
e18dc3e
Removed some unwanted blank-space.
fcbedbe
Changed "apply" to 3rd person present tense.
9d614a0
Removed blank-space.
e3361a4
Fixed a typo/
b9c339d
Merge branch 'apple:main' into zkiraly/documentation-update-2
zkiraly a5c16a1
Added back the Since docs that were deleted.
513835a
Merge branch 'main' into zkiraly/documentation-update-2
zkiraly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Sources/PackageDescription/PackageDescription.docc/Curation/BuildConfiguration.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ``PackageDescription/BuildConfiguration`` | ||
|
||
## Topics | ||
|
||
### Describing Build Configurations | ||
|
||
- ``debug`` | ||
- ``release`` | ||
|
||
### Encoding and Decoding | ||
|
||
- ``encode(to:)`` |
14 changes: 14 additions & 0 deletions
14
...es/PackageDescription/PackageDescription.docc/Curation/BuildSettingCondition.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ``PackageDescription/BuildSettingCondition`` | ||
|
||
## Topics | ||
|
||
### Checking for a Build Condition | ||
|
||
- ``when(platforms:)`` | ||
- ``when(configuration:)`` | ||
- ``when(platforms:configuration:)-2991l`` | ||
- ``when(platforms:configuration:)-475co`` | ||
|
||
### Encoding and Decoding | ||
|
||
- ``encode(to:)`` |
13 changes: 13 additions & 0 deletions
13
Sources/PackageDescription/PackageDescription.docc/Curation/CSetting.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ``PackageDescription/CSetting`` | ||
|
||
## Topics | ||
|
||
### Configuring C Settings | ||
|
||
- ``define(_:to:_:)`` | ||
- ``headerSearchPath(_:_:)`` | ||
- ``unsafeFlags(_:_:)`` | ||
|
||
### Encoding and Decoding | ||
|
||
- ``encode(to:)`` |
13 changes: 13 additions & 0 deletions
13
Sources/PackageDescription/PackageDescription.docc/Curation/CXXSetting.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ``PackageDescription/CXXSetting`` | ||
|
||
## Topics | ||
|
||
### Configuring CXX Settings | ||
|
||
- ``define(_:to:_:)`` | ||
- ``headerSearchPath(_:_:)`` | ||
- ``unsafeFlags(_:_:)`` | ||
|
||
### Encoding and Decoding | ||
|
||
- ``encode(to:)`` |
14 changes: 14 additions & 0 deletions
14
...ription/PackageDescription.docc/Curation/Extensions/Library-LibraryType-hash.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ``PackageDescription/Product/Library/LibraryType/hash(into:)`` | ||
|
||
@Metadata { | ||
@DocumentationExtension(mergeBehavior: override) | ||
} | ||
|
||
Hashes the essential components of this value by feeding them into the given hasher. | ||
|
||
Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components. | ||
|
||
> Important: | ||
> Never call finalize() on hasher. Doing so may become a compile-time error in the future. | ||
|
||
- Parameter into: The hasher to use when combining the components of this instance. |
7 changes: 7 additions & 0 deletions
7
...on/PackageDescription.docc/Curation/Extensions/Library-LibraryType-hashValue.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ``PackageDescription/Product/Library/LibraryType/hashValue`` | ||
|
||
@Metadata { | ||
@DocumentationExtension(mergeBehavior: override) | ||
} | ||
|
||
The library type’s hash value. |
11 changes: 11 additions & 0 deletions
11
...PackageDescription.docc/Curation/Extensions/Library-LibraryType-initRawValue.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ``PackageDescription/Product/Library/LibraryType/init(rawValue:)`` | ||
|
||
@Metadata { | ||
@DocumentationExtension(mergeBehavior: override) | ||
} | ||
|
||
Creates a new instance with the specified raw value. | ||
|
||
- Parameter rawValue: The raw value to use for the new instance. | ||
|
||
If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.