2f5d35e
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Github;
impl Platform for Github {
fn id(&self) -> &'static str {
"github"
}
fn name(&self) -> &'static str {
"GitHub"
}
fn category(&self) -> Category {
Category::Dev
}
fn domains(&self) -> &'static [&'static str] {
&["github.com", "github.io", "githubusercontent.com", "github.blog"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Github = Github;