Skip to content
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

Add Swift package index yml file #900

Merged
merged 2 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This is manifest file for the Swift Package Index for it to
# auto-generate and host DocC documentation.
# For reference see https://swiftpackageindex.com/swiftpackageindex/spimanifest/documentation/spimanifest/commonusecases#Host-DocC-documentation-in-the-Swift-Package-Index.

version: 1
builder:
configs:
- documentation_targets:
# First item in the list is the "landing" (default) target
- SwiftFormat
custom_documentation_parameters: [--experimental-skip-synthesized-symbols]
4 changes: 2 additions & 2 deletions Sources/SwiftFormat/API/SwiftFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class SwiftFormatter {
/// This form of the `format` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``format(syntax:assumingFileURL:to:)``.
/// manually and then call ``format(syntax:source:operatorTable:assumingFileURL:selection:to:)``.
///
/// - Parameters:
/// - url: The URL of the file containing the code to format.
Expand Down Expand Up @@ -81,7 +81,7 @@ public final class SwiftFormatter {
/// This form of the `format` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``format(syntax:assumingFileURL:to:)``.
/// manually and then call ``format(syntax:source:operatorTable:assumingFileURL:selection:to:)``.
///
/// - Parameters:
/// - source: The Swift source code to be formatted.
Expand Down
5 changes: 3 additions & 2 deletions Sources/SwiftFormat/API/SwiftLinter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class SwiftLinter {
/// This form of the `lint` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``lint(syntax:assumingFileURL:)``.
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
///
/// - Parameters:
/// - url: The URL of the file containing the code to format.
Expand Down Expand Up @@ -76,7 +76,7 @@ public final class SwiftLinter {
/// This form of the `lint` function automatically folds expressions using the default operator
/// set defined in Swift. If you need more control over this—for example, to provide the correct
/// precedence relationships for custom operators—you must parse and fold the syntax tree
/// manually and then call ``lint(syntax:assumingFileURL:)``.
/// manually and then call ``lint(syntax:source:operatorTable:assumingFileURL:)``.
///
/// - Parameters:
/// - source: The Swift source code to be linted.
Expand Down Expand Up @@ -124,6 +124,7 @@ public final class SwiftLinter {
///
/// - Parameters:
/// - syntax: The Swift syntax tree to be converted to be linted.
/// - source: The Swift source code to be linted.
/// - operatorTable: The table that defines the operators and their precedence relationships.
/// This must be the same operator table that was used to fold the expressions in the `syntax`
/// argument.
Expand Down
Loading