Fixed the output of the "path" computed property for the AssetPrefix enumeration in the library target.
This commit is contained in:
parent
39a9523ac9
commit
5b379fbc86
@ -25,7 +25,7 @@ extension AssetPrefix: Pathable {
|
|||||||
// MARK: Computed
|
// MARK: Computed
|
||||||
|
|
||||||
var path: String {
|
var path: String {
|
||||||
.init(format: .Format.Path.root, rawValue)
|
.init(format: .Format.Path.folder, rawValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,13 +3,15 @@ extension String {
|
|||||||
enum Format {
|
enum Format {
|
||||||
/// A namespace that defines the format patterns used to generate relative path representations.
|
/// A namespace that defines the format patterns used to generate relative path representations.
|
||||||
enum Path {
|
enum Path {
|
||||||
/// A representation of the format pattern used to generate relative paths that starts with the `/` string and finishes with the `.doccarchive` string.
|
/// A format pattern used to generate relative paths that starts with the `/` string and finishes with the `.doccarchive` string.
|
||||||
static let archive = "/%@.doccarchive"
|
static let archive = "/%@.doccarchive"
|
||||||
/// A representation of the format pattern used to generate relative paths that starts with the `/data` string.
|
/// A format pattern used to generate relative paths that starts with the `/data` string.
|
||||||
static let data = "/data/%@"
|
static let data = "/data/%@"
|
||||||
/// A representation of the format pattern used to generate relative paths that starts with the `/docs` string.
|
/// A format pattern used to generate relative paths that starts with the `/docs` string.
|
||||||
static let docs = "/docs/%@"
|
static let docs = "/docs/%@"
|
||||||
/// A representation of the format pattern used to generate relative paths that starts with the `/` string.
|
/// A format pattern used to generate relative paths that starts and finishes with the `/` string.
|
||||||
|
static let folder = "/%@/"
|
||||||
|
/// A format pattern used to generate relative paths that starts with the `/` string.
|
||||||
static let root = "/%@"
|
static let root = "/%@"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,14 +29,14 @@ private extension Collection where Element == String {
|
|||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
static var paths: [Element] {[
|
static var paths: [Element] {[
|
||||||
"/css",
|
"/css/",
|
||||||
"/data",
|
"/data/",
|
||||||
"/downloads",
|
"/downloads/",
|
||||||
"/images",
|
"/images/",
|
||||||
"/img",
|
"/img/",
|
||||||
"/index",
|
"/index/",
|
||||||
"/js",
|
"/js/",
|
||||||
"/videos"
|
"/videos/"
|
||||||
]}
|
]}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user