diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-07-02 19:29:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-07-02 19:29:05 +0300 |
commit | b98e4e25c1ad67381f58432f8b29279a9e7dcb04 (patch) | |
tree | d3cda2105363a76d5ca0841763a946aff2b0837d /src/bin/cli/mod.rs | |
parent | e5e0a4a3cb035bf0bace9487a182478f4fff20d0 (diff) | |
download | subplot-b98e4e25c1ad67381f58432f8b29279a9e7dcb04.tar.gz |
feat! drop support for bibliographies in document metadata
We don't use the bibliographies for anything so there's not point in
allowing users to specify it. If and when we add support for
bibliographies again, we may well want to do it in a different way.
Alas, we also have to disable reference.md because the release it
refers to uses bibliographies. We'll have to re-enable it again after
the next release.
Sponsored-by: author
Diffstat (limited to 'src/bin/cli/mod.rs')
-rw-r--r-- | src/bin/cli/mod.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/bin/cli/mod.rs b/src/bin/cli/mod.rs index 19e4fbf..30ad5f6 100644 --- a/src/bin/cli/mod.rs +++ b/src/bin/cli/mod.rs @@ -27,7 +27,6 @@ pub struct Metadata { title: String, binding_files: Vec<String>, impls: HashMap<String, Vec<String>>, - bibliographies: Vec<String>, scenarios: Vec<String>, files: Vec<String>, } @@ -64,13 +63,6 @@ impl TryFrom<&mut Document> for Metadata { (template.to_string(), filenames) }) .collect(); - let mut bibliographies: Vec<_> = doc - .meta() - .bibliographies() - .into_iter() - .map(|p| filename(Some(p))) - .collect(); - bibliographies.sort_unstable(); let mut scenarios: Vec<_> = doc .scenarios()? .into_iter() @@ -88,7 +80,6 @@ impl TryFrom<&mut Document> for Metadata { title, binding_files, impls, - bibliographies, scenarios, files, }) @@ -109,7 +100,6 @@ impl Metadata { for (template, filenames) in self.impls.iter() { Self::write_list(filenames, &format!("functions[{template}]")); } - Self::write_list(&self.bibliographies, "bibliography"); Self::write_list(&self.files, "file"); Self::write_list(&self.scenarios, "scenario"); } |