use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Gitbook; impl Platform for Gitbook { fn id(&self) -> &'static str { "gitbook" } fn name(&self) -> &'static str { "GitBook" } fn category(&self) -> Category { Category::Knowledge } fn domains(&self) -> &'static [&'static str] { &["gitbook.io", "gitbook.com"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Gitbook = Gitbook;