Create empty markdown files for elements
This commit is contained in:
@ -59,7 +59,8 @@ struct PageGenerator {
|
||||
}
|
||||
|
||||
private func makeContent(page: Element, language: String, path: String) -> (content: String, includesCode: Bool)? {
|
||||
guard let content = files.contentOfOptionalFile(atPath: path, source: page.path) else {
|
||||
guard let content = files.contentOfOptionalFile(atPath: path, source: page.path, createEmptyFileIfMissing: true),
|
||||
content.trimmed != "" else {
|
||||
return nil
|
||||
}
|
||||
return PageContentGenerator(factory: factory.factory)
|
||||
|
Reference in New Issue
Block a user