0e71b2673c
This PR contains the work done to update the project to use the *Apache v2.0* license. Reviewed-on: #6 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
// ===----------------------------------------------------------------------===
|
|
//
|
|
// This source file is part of the Hummingbird DocC open source project
|
|
//
|
|
// Copyright (c) 2025 Röck+Cöde VoF. and the Hummingbird DocC project authors
|
|
// Licensed under Apache license v2.0
|
|
//
|
|
// See LICENSE for license information
|
|
// See CONTRIBUTORS for the list of Hummingbird DocC project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
// ===----------------------------------------------------------------------===
|
|
|
|
/// An enumeration that represents all possible asset folders that could be generated by the `DocC` building process.
|
|
enum AssetFolder: String, CaseIterable {
|
|
/// A folder that contains all CSS style sheets.
|
|
case css
|
|
/// A folder that contains all documentation data.
|
|
case data
|
|
/// A folder that contains all other resources.
|
|
case downloads
|
|
/// A folder that contains all image resources.
|
|
case images
|
|
/// A folder that contains all image resources.
|
|
case img
|
|
/// A folder that contains all generated `HTML` code.
|
|
case index
|
|
/// A folder that contains all generated `Javascript` code.
|
|
case js
|
|
/// A folder that contains all video resources.
|
|
case videos
|
|
}
|
|
|
|
// MARK: - Pathable
|
|
|
|
extension AssetFolder: Pathable {
|
|
|
|
// MARK: Computed
|
|
|
|
var path: String {
|
|
.init(format: .Format.Path.folder, rawValue)
|
|
}
|
|
|
|
}
|