Files

11 lines
428 B
Swift

import Foundation
/// The help text: the docs, tricks and shortcuts that Plak Help appends, read from `help.md` in the page file format.
public enum HelpText {
/// The text of help.md; empty when the file is missing.
public static let text: String = {
guard let url = LoremText.fileURL(named: "help.md"), let text = try? String(contentsOf: url, encoding: .utf8) else { return "" }
return text
}()
}