Add first source scanning

This commit is contained in:
Christoph Hagen
2022-08-19 18:05:06 +02:00
parent 7fe1865dfd
commit 06daa5e5fa
17 changed files with 1287 additions and 5 deletions

View File

@ -10,7 +10,7 @@ struct LinkPreviewMetadata {
/**
The title to use for the link preview.
If `nil` is specified, then the localized element title is used.
If `nil` is specified, then the localized element `title` is used.
*/
let title: String?
@ -23,8 +23,8 @@ struct LinkPreviewMetadata {
/**
The description text for the link preview.
- Note: If `nil` is specified, then first the (localized) element subtitle is used.
If this is `nil` too, then the localized description of the element is used.
- Note: If `nil` is specified, then first the (localized) element `subtitle` is used.
If this is `nil` too, then the localized `description` of the element is used.
*/
let description: String?
}

View File

@ -29,8 +29,8 @@ struct Site {
print("Loaded site with \(elements.count) sections and \(metadata.languages.count) languages")
// Create example metadata
_ = try? Page.Metadata(in: folder)
_ = try? Section.Metadata(in: folder)
//_ = try? Page.Metadata(in: folder)
//_ = try? Section.Metadata(in: folder)
}
}