Quellcode durchsuchen

=docc Move to multiple Package.swift files (#231)

* +docc prepare for docc docs

* fix syntax in one of the package files

* ignore package.resolved
Konrad `ktoso` Malawski vor 3 Jahren
Ursprung
Commit
a8e1148aa5

+ 1 - 0
.gitignore

@@ -1,4 +1,5 @@
 .DS_Store
+Package.resolved
 /.build
 /Packages
 /*.xcodeproj

+ 4 - 1
Package.swift

@@ -1,4 +1,4 @@
-// swift-tools-version:5.0
+// swift-tools-version:5.7
 //===----------------------------------------------------------------------===//
 //
 // This source file is part of the Swift Logging API open source project
@@ -20,6 +20,9 @@ let package = Package(
     products: [
         .library(name: "Logging", targets: ["Logging"]),
     ],
+    dependencies: [
+        .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
+    ],
     targets: [
         .target(
             name: "Logging",

+ 33 - 0
Package@swift-5.0.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.0
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 33 - 0
Package@swift-5.1.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.1
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 33 - 0
Package@swift-5.2.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.2
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 33 - 0
Package@swift-5.3.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.3
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 33 - 0
Package@swift-5.4.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.4
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 33 - 0
Package@swift-5.5.swift

@@ -0,0 +1,33 @@
+// swift-tools-version:5.5
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Logging API open source project
+//
+// Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Logging API project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import PackageDescription
+
+let package = Package(
+    name: "swift-log",
+    products: [
+        .library(name: "Logging", targets: ["Logging"]),
+    ],
+    targets: [
+        .target(
+            name: "Logging",
+            dependencies: []
+        ),
+        .testTarget(
+            name: "LoggingTests",
+            dependencies: ["Logging"]
+        ),
+    ]
+)

+ 0 - 0
Sources/Logging/Documentation.docc/LoggerLevel.md → Sources/Logging/Docs.docc/LoggerLevel.md


+ 0 - 0
Sources/Logging/Documentation.docc/index.md → Sources/Logging/Docs.docc/index.md


+ 2 - 1
docker/docker-compose.2004.55.yaml

@@ -11,7 +11,8 @@ services:
 
   test:
     image: swift-log:20.04-5.5
-    environment: []
+    environment:
+      - FORCE_TEST_DISCOVERY=--enable-test-discovery
       #- SANITIZER_ARG=--sanitize=thread
 
   shell:

+ 16 - 0
scripts/preview_docc.sh

@@ -0,0 +1,16 @@
+#!/bin/bash
+##===----------------------------------------------------------------------===##
+##
+## This source file is part of the Swift Logging API open source project
+##
+## Copyright (c) 2018-2019 Apple Inc. and the Swift Logging API project authors
+## Licensed under Apache License v2.0
+##
+## See LICENSE.txt for license information
+## See CONTRIBUTORS.md for the list of Swift Logging API project authors
+##
+## SPDX-License-Identifier: Apache-2.0
+##
+##===----------------------------------------------------------------------===##
+
+xcrun swift package --disable-sandbox preview-documentation --target Logging