chore: source formatting and spec allignment
This commit is contained in:
@@ -154,10 +154,15 @@ mod tests {
|
||||
fn max_posts_per_page_validation() {
|
||||
let mut meta = ProjectMetadata {
|
||||
name: "Test".into(),
|
||||
description: None, public_url: None, main_language: None,
|
||||
default_author: None, max_posts_per_page: 50, blogmark_category: None,
|
||||
description: None,
|
||||
public_url: None,
|
||||
main_language: None,
|
||||
default_author: None,
|
||||
max_posts_per_page: 50,
|
||||
blogmark_category: None,
|
||||
pico_theme: None,
|
||||
semantic_similarity_enabled: false, blog_languages: vec![],
|
||||
semantic_similarity_enabled: false,
|
||||
blog_languages: vec![],
|
||||
};
|
||||
assert!(meta.validate().is_ok());
|
||||
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
mod post;
|
||||
mod media;
|
||||
mod tag;
|
||||
mod project;
|
||||
mod template;
|
||||
mod script;
|
||||
mod generation;
|
||||
mod media;
|
||||
pub mod metadata;
|
||||
mod post;
|
||||
mod project;
|
||||
mod script;
|
||||
mod tag;
|
||||
mod template;
|
||||
|
||||
pub use post::{Post, PostLink, PostMedia, PostStatus, PostTranslation};
|
||||
pub use media::{Media, MediaTranslation};
|
||||
pub use tag::Tag;
|
||||
pub use project::{Project, Setting};
|
||||
pub use template::{Template, TemplateKind, TemplateStatus};
|
||||
pub use script::{Script, ScriptKind, ScriptStatus};
|
||||
pub use generation::{
|
||||
DbNotification, GeneratedFileHash, NotificationAction, NotificationEntity,
|
||||
PublishingPreferences, SshMode,
|
||||
};
|
||||
pub use media::{Media, MediaTranslation};
|
||||
pub use metadata::{CategorySettings, ProjectMetadata, TagEntry};
|
||||
pub use post::{Post, PostLink, PostMedia, PostStatus, PostTranslation};
|
||||
pub use project::{Project, Setting};
|
||||
pub use script::{Script, ScriptKind, ScriptStatus};
|
||||
pub use tag::Tag;
|
||||
pub use template::{Template, TemplateKind, TemplateStatus};
|
||||
|
||||
Reference in New Issue
Block a user