diff --git a/src/elements/mod.rs b/src/elements/mod.rs index 39e062b..0fe2999 100644 --- a/src/elements/mod.rs +++ b/src/elements/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub mod tokens; use crate::format::PlaceholderTemplate; diff --git a/src/elements/tokens.rs b/src/elements/tokens.rs index 2eb9255..c3d3ac7 100644 --- a/src/elements/tokens.rs +++ b/src/elements/tokens.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + #![allow(unused)] pub(crate) const BACKSLASH: char = '\\'; diff --git a/src/format/assets/base.scss b/src/format/assets/base.scss index ea31aa2..dba9a59 100644 --- a/src/format/assets/base.scss +++ b/src/format/assets/base.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + body { background-color: $body-background; overflow-x: hidden; diff --git a/src/format/assets/dark-magic.scss b/src/format/assets/dark-magic.scss index f1cac35..fccdfdd 100644 --- a/src/format/assets/dark-magic.scss +++ b/src/format/assets/dark-magic.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: #1e1d2c; $background-color-variant-1: lighten($background-color, 7%); $background-color-variant-2: lighten($background-color, 14%); diff --git a/src/format/assets/dark-ocean.scss b/src/format/assets/dark-ocean.scss index 510f274..c1be4b4 100644 --- a/src/format/assets/dark-ocean.scss +++ b/src/format/assets/dark-ocean.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: darken(#2b303b, 8%); $background-color-variant-1: lighten($background-color, 7%); $background-color-variant-2: lighten($background-color, 14%); diff --git a/src/format/assets/dark-solarized.scss b/src/format/assets/dark-solarized.scss index a067a27..6f14ea9 100644 --- a/src/format/assets/dark-solarized.scss +++ b/src/format/assets/dark-solarized.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: darken(#002b36, 5%); $background-color-variant-1: lighten($background-color, 7%); $background-color-variant-2: lighten($background-color, 14%); diff --git a/src/format/assets/light-github.scss b/src/format/assets/light-github.scss index 05d74cb..8c46349 100644 --- a/src/format/assets/light-github.scss +++ b/src/format/assets/light-github.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: #FFF; $background-color-variant-1: darken($background-color, 7%); $background-color-variant-2: darken($background-color, 14%); diff --git a/src/format/assets/light-ocean.scss b/src/format/assets/light-ocean.scss index af7aef2..49aa725 100644 --- a/src/format/assets/light-ocean.scss +++ b/src/format/assets/light-ocean.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: #FFF; $background-color-variant-1: darken($background-color, 7%); $background-color-variant-2: darken($background-color, 14%); diff --git a/src/format/assets/light-solarized.scss b/src/format/assets/light-solarized.scss index dcfbb87..840e017 100644 --- a/src/format/assets/light-solarized.scss +++ b/src/format/assets/light-solarized.scss @@ -1,3 +1,9 @@ +/*! + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + $background-color: #fff8f0; $background-color-variant-1: darken($background-color, 4%); $background-color-variant-2: darken($background-color, 8%); diff --git a/src/format/chromium_pdf/assets/default-footer-template.html b/src/format/chromium_pdf/assets/default-footer-template.html index a22b698..1c1ee01 100644 --- a/src/format/chromium_pdf/assets/default-footer-template.html +++ b/src/format/chromium_pdf/assets/default-footer-template.html @@ -1,3 +1,9 @@ + +
/
\ No newline at end of file diff --git a/src/format/chromium_pdf/mod.rs b/src/format/chromium_pdf/mod.rs index 4d2576e..761824e 100644 --- a/src/format/chromium_pdf/mod.rs +++ b/src/format/chromium_pdf/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::Document; use crate::format::chromium_pdf::result::{PdfRenderingError, PdfRenderingResult}; use crate::format::html::html_writer::HTMLWriter; diff --git a/src/format/chromium_pdf/result.rs b/src/format/chromium_pdf/result.rs index 31256de..486b3f0 100644 --- a/src/format/chromium_pdf/result.rs +++ b/src/format/chromium_pdf/result.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use std::error::Error; use std::fmt::{self, Display}; use std::io; diff --git a/src/format/html/html_writer.rs b/src/format/html/html_writer.rs index 1a518b3..f583942 100644 --- a/src/format/html/html_writer.rs +++ b/src/format/html/html_writer.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::settings::style_settings::Theme; use std::io; use std::io::Write; diff --git a/src/format/html/mod.rs b/src/format/html/mod.rs index 7c72de5..c3c4398 100644 --- a/src/format/html/mod.rs +++ b/src/format/html/mod.rs @@ -1,2 +1,8 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub mod html_writer; pub mod to_html; diff --git a/src/format/html/to_html.rs b/src/format/html/to_html.rs index d34b557..ef282d3 100644 --- a/src/format/html/to_html.rs +++ b/src/format/html/to_html.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::*; use crate::format::html::html_writer::HTMLWriter; use crate::format::style::{get_code_theme_for_theme, get_css_for_theme}; diff --git a/src/format/mod.rs b/src/format/mod.rs index 6fc2726..943f592 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use regex::Regex; use std::collections::HashMap; diff --git a/src/format/style.rs b/src/format/style.rs index c73eb9c..e251135 100644 --- a/src/format/style.rs +++ b/src/format/style.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::settings::style_settings::Theme; use std::time::Instant; use syntect::highlighting::ThemeSet; diff --git a/src/lib.rs b/src/lib.rs index 5f5aa8b..b7df9f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub mod elements; pub mod format; pub mod parser; diff --git a/src/main.rs b/src/main.rs index 7c160a0..14e26f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use colored::Colorize; use env_logger::Env; use log::{Level, LevelFilter}; diff --git a/src/parser/block.rs b/src/parser/block.rs index 2a640e0..cb6ce04 100644 --- a/src/parser/block.rs +++ b/src/parser/block.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use super::ParseResult; use crate::elements::tokens::*; use crate::elements::{ diff --git a/src/parser/inline.rs b/src/parser/inline.rs index daa2d62..fdf6f9c 100644 --- a/src/parser/inline.rs +++ b/src/parser/inline.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use super::{ParseError, ParseResult}; use crate::elements::tokens::*; use crate::elements::BibReference; diff --git a/src/parser/line.rs b/src/parser/line.rs index 4078c15..1f5b139 100644 --- a/src/parser/line.rs +++ b/src/parser/line.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use super::ParseResult; use crate::elements::tokens::*; use crate::elements::Inline::LineBreak; diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 6d344de..be75255 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub(crate) mod block; pub(crate) mod inline; pub(crate) mod line; diff --git a/src/references/bibliography.rs b/src/references/bibliography.rs index c69cbc0..dab029f 100644 --- a/src/references/bibliography.rs +++ b/src/references/bibliography.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::{Anchor, BoldText, ItalicText, Line, List, ListItem, PlainText, TextLine}; use crate::elements::{Inline, Url}; use bibliographix::bibliography::bib_types::article::Article; diff --git a/src/references/glossary.rs b/src/references/glossary.rs index ba0238e..5b1b03d 100644 --- a/src/references/glossary.rs +++ b/src/references/glossary.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::{ Anchor, BoldText, Inline, ItalicText, Line, List, ListItem, PlainText, TextLine, }; diff --git a/src/references/mod.rs b/src/references/mod.rs index 33b22fe..7d2d440 100644 --- a/src/references/mod.rs +++ b/src/references/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub mod bibliography; pub mod glossary; pub mod placeholders; diff --git a/src/references/placeholders.rs b/src/references/placeholders.rs index 14f8950..4607a1e 100644 --- a/src/references/placeholders.rs +++ b/src/references/placeholders.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::*; use crate::references::bibliography::create_bib_list; use chrono::prelude::*; diff --git a/src/references/templates.rs b/src/references/templates.rs index 4672344..a47124e 100644 --- a/src/references/templates.rs +++ b/src/references/templates.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::{Block, Element, Inline, Line, ListItem}; use std::collections::HashMap; use std::sync::{Arc, RwLock}; diff --git a/src/settings/feature_settings.rs b/src/settings/feature_settings.rs index aa38da7..2938281 100644 --- a/src/settings/feature_settings.rs +++ b/src/settings/feature_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/settings/image_settings.rs b/src/settings/image_settings.rs index 4e836d8..ac9fc55 100644 --- a/src/settings/image_settings.rs +++ b/src/settings/image_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/settings/import_settings.rs b/src/settings/import_settings.rs index 32e24c8..e8139f6 100644 --- a/src/settings/import_settings.rs +++ b/src/settings/import_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/settings/metadata_settings.rs b/src/settings/metadata_settings.rs index a6257a8..36db907 100644 --- a/src/settings/metadata_settings.rs +++ b/src/settings/metadata_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/settings/mod.rs b/src/settings/mod.rs index a76cec0..0733a42 100644 --- a/src/settings/mod.rs +++ b/src/settings/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::{Metadata, MetadataValue}; use crate::settings::feature_settings::FeatureSettings; use crate::settings::image_settings::ImageSettings; diff --git a/src/settings/pdf_settings.rs b/src/settings/pdf_settings.rs index de7fe9b..346bf6b 100644 --- a/src/settings/pdf_settings.rs +++ b/src/settings/pdf_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/settings/style_settings.rs b/src/settings/style_settings.rs index c5b43d9..e840dcc 100644 --- a/src/settings/style_settings.rs +++ b/src/settings/style_settings.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone, Debug)] diff --git a/src/utils/caching.rs b/src/utils/caching.rs index d9c6549..2114f60 100644 --- a/src/utils/caching.rs +++ b/src/utils/caching.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use platform_dirs::{AppDirs, AppUI}; use sha2::Digest; use std::fs; diff --git a/src/utils/downloads.rs b/src/utils/downloads.rs index 39c300f..3180600 100644 --- a/src/utils/downloads.rs +++ b/src/utils/downloads.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::utils::caching::CacheStorage; use indicatif::{ProgressBar, ProgressStyle}; use parking_lot::Mutex; diff --git a/src/utils/image_converting.rs b/src/utils/image_converting.rs index 5cab906..088e2f6 100644 --- a/src/utils/image_converting.rs +++ b/src/utils/image_converting.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use crate::elements::Metadata; use crate::utils::caching::CacheStorage; use crate::utils::downloads::download_path; diff --git a/src/utils/macros.rs b/src/utils/macros.rs index f21ecb4..d45b626 100644 --- a/src/utils/macros.rs +++ b/src/utils/macros.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + #[macro_export] macro_rules! plain_text { ($e:expr) => { diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 7beaff7..9a742c4 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + pub mod caching; pub mod downloads; pub mod image_converting; diff --git a/src/utils/parsing.rs b/src/utils/parsing.rs index 823ff74..3633c11 100644 --- a/src/utils/parsing.rs +++ b/src/utils/parsing.rs @@ -1,3 +1,9 @@ +/* + * Snekdown - Custom Markdown flavour and parser + * Copyright (C) 2021 Trivernis + * See LICENSE for more information. + */ + use regex::Regex; #[macro_export] macro_rules! parse {