Update Copyright in Source files

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/20/head
trivernis 4 years ago
parent 1e46274003
commit 6ebc7cc766
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
pub mod tokens; pub mod tokens;
use crate::format::PlaceholderTemplate; use crate::format::PlaceholderTemplate;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
#![allow(unused)] #![allow(unused)]
pub(crate) const BACKSLASH: char = '\\'; pub(crate) const BACKSLASH: char = '\\';

@ -1,3 +1,9 @@
/*!
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
body { body {
background-color: $body-background; background-color: $body-background;
overflow-x: hidden; overflow-x: hidden;

@ -1,3 +1,9 @@
/*!
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
$background-color: #1e1d2c; $background-color: #1e1d2c;
$background-color-variant-1: lighten($background-color, 7%); $background-color-variant-1: lighten($background-color, 7%);
$background-color-variant-2: lighten($background-color, 14%); $background-color-variant-2: lighten($background-color, 14%);

@ -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: darken(#2b303b, 8%);
$background-color-variant-1: lighten($background-color, 7%); $background-color-variant-1: lighten($background-color, 7%);
$background-color-variant-2: lighten($background-color, 14%); $background-color-variant-2: lighten($background-color, 14%);

@ -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: darken(#002b36, 5%);
$background-color-variant-1: lighten($background-color, 7%); $background-color-variant-1: lighten($background-color, 7%);
$background-color-variant-2: lighten($background-color, 14%); $background-color-variant-2: lighten($background-color, 14%);

@ -1,3 +1,9 @@
/*!
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
$background-color: #FFF; $background-color: #FFF;
$background-color-variant-1: darken($background-color, 7%); $background-color-variant-1: darken($background-color, 7%);
$background-color-variant-2: darken($background-color, 14%); $background-color-variant-2: darken($background-color, 14%);

@ -1,3 +1,9 @@
/*!
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
$background-color: #FFF; $background-color: #FFF;
$background-color-variant-1: darken($background-color, 7%); $background-color-variant-1: darken($background-color, 7%);
$background-color-variant-2: darken($background-color, 14%); $background-color-variant-2: darken($background-color, 14%);

@ -1,3 +1,9 @@
/*!
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
$background-color: #fff8f0; $background-color: #fff8f0;
$background-color-variant-1: darken($background-color, 4%); $background-color-variant-1: darken($background-color, 4%);
$background-color-variant-2: darken($background-color, 8%); $background-color-variant-2: darken($background-color, 8%);

@ -1,3 +1,9 @@
<!--
~ Snekdown - Custom Markdown flavour and parser
~ Copyright (C) 2021 Trivernis
~ See LICENSE for more information.
-->
<div style="font-size: 10px; text-align: center; width: 100%;"> <div style="font-size: 10px; text-align: center; width: 100%;">
<span class="pageNumber"></span>/<span class="totalPages"></span> <span class="pageNumber"></span>/<span class="totalPages"></span>
</div> </div>

@ -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::elements::Document;
use crate::format::chromium_pdf::result::{PdfRenderingError, PdfRenderingResult}; use crate::format::chromium_pdf::result::{PdfRenderingError, PdfRenderingResult};
use crate::format::html::html_writer::HTMLWriter; use crate::format::html::html_writer::HTMLWriter;

@ -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::error::Error;
use std::fmt::{self, Display}; use std::fmt::{self, Display};
use std::io; use std::io;

@ -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 crate::settings::style_settings::Theme;
use std::io; use std::io;
use std::io::Write; use std::io::Write;

@ -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 html_writer;
pub mod to_html; pub mod to_html;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use crate::elements::*; use crate::elements::*;
use crate::format::html::html_writer::HTMLWriter; use crate::format::html::html_writer::HTMLWriter;
use crate::format::style::{get_code_theme_for_theme, get_css_for_theme}; use crate::format::style::{get_code_theme_for_theme, get_css_for_theme};

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use regex::Regex; use regex::Regex;
use std::collections::HashMap; use std::collections::HashMap;

@ -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 crate::settings::style_settings::Theme;
use std::time::Instant; use std::time::Instant;
use syntect::highlighting::ThemeSet; use syntect::highlighting::ThemeSet;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
pub mod elements; pub mod elements;
pub mod format; pub mod format;
pub mod parser; pub mod parser;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use colored::Colorize; use colored::Colorize;
use env_logger::Env; use env_logger::Env;
use log::{Level, LevelFilter}; use log::{Level, LevelFilter};

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use super::ParseResult; use super::ParseResult;
use crate::elements::tokens::*; use crate::elements::tokens::*;
use crate::elements::{ use crate::elements::{

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use super::{ParseError, ParseResult}; use super::{ParseError, ParseResult};
use crate::elements::tokens::*; use crate::elements::tokens::*;
use crate::elements::BibReference; use crate::elements::BibReference;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use super::ParseResult; use super::ParseResult;
use crate::elements::tokens::*; use crate::elements::tokens::*;
use crate::elements::Inline::LineBreak; use crate::elements::Inline::LineBreak;

@ -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 block;
pub(crate) mod inline; pub(crate) mod inline;
pub(crate) mod line; pub(crate) mod line;

@ -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::{Anchor, BoldText, ItalicText, Line, List, ListItem, PlainText, TextLine};
use crate::elements::{Inline, Url}; use crate::elements::{Inline, Url};
use bibliographix::bibliography::bib_types::article::Article; use bibliographix::bibliography::bib_types::article::Article;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use crate::elements::{ use crate::elements::{
Anchor, BoldText, Inline, ItalicText, Line, List, ListItem, PlainText, TextLine, Anchor, BoldText, Inline, ItalicText, Line, List, ListItem, PlainText, TextLine,
}; };

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
pub mod bibliography; pub mod bibliography;
pub mod glossary; pub mod glossary;
pub mod placeholders; pub mod placeholders;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use crate::elements::*; use crate::elements::*;
use crate::references::bibliography::create_bib_list; use crate::references::bibliography::create_bib_list;
use chrono::prelude::*; use chrono::prelude::*;

@ -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 crate::elements::{Block, Element, Inline, Line, ListItem};
use std::collections::HashMap; use std::collections::HashMap;
use std::sync::{Arc, RwLock}; use std::sync::{Arc, RwLock};

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -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::elements::{Metadata, MetadataValue};
use crate::settings::feature_settings::FeatureSettings; use crate::settings::feature_settings::FeatureSettings;
use crate::settings::image_settings::ImageSettings; use crate::settings::image_settings::ImageSettings;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug)] #[derive(Serialize, Deserialize, Clone, Debug)]

@ -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 platform_dirs::{AppDirs, AppUI};
use sha2::Digest; use sha2::Digest;
use std::fs; use std::fs;

@ -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 crate::utils::caching::CacheStorage;
use indicatif::{ProgressBar, ProgressStyle}; use indicatif::{ProgressBar, ProgressStyle};
use parking_lot::Mutex; use parking_lot::Mutex;

@ -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::elements::Metadata;
use crate::utils::caching::CacheStorage; use crate::utils::caching::CacheStorage;
use crate::utils::downloads::download_path; use crate::utils::downloads::download_path;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
#[macro_export] #[macro_export]
macro_rules! plain_text { macro_rules! plain_text {
($e:expr) => { ($e:expr) => {

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
pub mod caching; pub mod caching;
pub mod downloads; pub mod downloads;
pub mod image_converting; pub mod image_converting;

@ -1,3 +1,9 @@
/*
* Snekdown - Custom Markdown flavour and parser
* Copyright (C) 2021 Trivernis
* See LICENSE for more information.
*/
use regex::Regex; use regex::Regex;
#[macro_export] #[macro_export]
macro_rules! parse { macro_rules! parse {

Loading…
Cancel
Save