Add metadata file imports and import types
Signed-off-by: trivernis <trivernis@protonmail.com>feature/epub-rendering
parent
09bbabfdc2
commit
f5bf361795
@ -1,22 +0,0 @@
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct RootConfig {
|
||||
pub(crate) bibliography: Option<BibConfig>,
|
||||
pub(crate) metadata: Option<MetaConfig>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct BibConfig {
|
||||
pub(crate) entry_display: Option<String>,
|
||||
pub(crate) reference_display: Option<String>,
|
||||
pub(crate) hide_unused: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MetaConfig {
|
||||
pub(crate) author: Option<String>,
|
||||
pub(crate) date: Option<String>,
|
||||
pub(crate) title: Option<String>,
|
||||
pub(crate) language: Option<String>,
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
[bibliography]
|
||||
entry_display = "{{number}}: {{author}} - {{title}} - {{date}} - {{url}}"
|
||||
reference_display = "{{number}}"
|
||||
hide_unused = true
|
@ -1,8 +1,2 @@
|
||||
pub const BIB_DISPLAY: &str = "bib-entry-display";
|
||||
pub const BIB_REF_DISPLAY: &str = "bib-ref-display";
|
||||
pub const BIB_HIDE_UNUSED: &str = "bib-hide-unused";
|
||||
|
||||
pub const META_AUTHOR: &str = "author";
|
||||
pub const META_TITLE: &str = "title";
|
||||
pub const META_DATE: &str = "date";
|
||||
pub const META_LANG: &str = "lang";
|
||||
pub const META_LANG: &str = "language";
|
||||
|
Loading…
Reference in New Issue