Skip to content

Commit 813de82

Browse files
committed
Add DocC
1 parent 3e5751e commit 813de82

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

Package.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.6
22

33
import PackageDescription
44
import Foundation
@@ -94,11 +94,11 @@ let package = Package(
9494
name: "_SwiftSyntaxTestSupport",
9595
dependencies: ["SwiftSyntax"]
9696
),
97-
.target(
97+
.executableTarget(
9898
name: "lit-test-helper",
9999
dependencies: ["SwiftSyntax", "SwiftSyntaxParser"]
100100
),
101-
.target(
101+
.executableTarget(
102102
name: "SwiftSyntaxBuilderGeneration",
103103
dependencies: ["SwiftSyntaxBuilder"],
104104
exclude: [
@@ -142,3 +142,7 @@ let package = Package(
142142
),
143143
]
144144
)
145+
146+
if ProcessInfo.processInfo.environment["SWIFT_BUILD_SCRIPT_ENVIRONMENT"] == nil {
147+
package.dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
148+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ``SwiftSyntax``
2+
3+
SwiftSyntax is a source accurate tree representation of Swift source code. It allows Swift tools to parse, inspect, generate, and transform Swift source code.
4+
5+
Its API is designed for performance-critical applications. It uses value types almost exclusively and aims to avoid existential conversions where possible.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ``SwiftSyntaxBuilder``
2+
3+
SwiftSyntaxBuiler is a tool for generating Swift code in a convenient way using result builders.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ``SwiftSyntaxParser``
2+
3+
SwiftSyntaxParser allows parsing Swift source code into a SwiftSyntax tree.

0 commit comments

Comments
 (0)