From f78e70e82334113c0861046a1fcd91c0d56df005 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Mon, 22 Sep 2025 19:21:13 +0200 Subject: [PATCH] Defined the Pathable protocol in the library target. --- .../Internal/Protocols/Pathable.swift | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Sources/DocCMiddleware/Internal/Protocols/Pathable.swift diff --git a/Sources/DocCMiddleware/Internal/Protocols/Pathable.swift b/Sources/DocCMiddleware/Internal/Protocols/Pathable.swift new file mode 100644 index 0000000..5cb5014 --- /dev/null +++ b/Sources/DocCMiddleware/Internal/Protocols/Pathable.swift @@ -0,0 +1,21 @@ +// ===----------------------------------------------------------------------=== +// +// This source file is part of the Hummingbird DocC Middleware open source project +// +// Copyright (c) 2025 Röck+Cöde VoF. and the Hummingbird DocC Middleware project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE for license information +// See CONTRIBUTORS for the list of Hummingbird DocC Middleware project authors +// +// ===----------------------------------------------------------------------=== + +/// A type that provides a relative path representation. +protocol Pathable { + + // MARK: Properties + + /// A (relative) path. + var path: String { get } + +}