aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-06 10:01:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-06-06 10:01:29 -0300
commit62402a1fefd04ba157221aaf99d3578d9fa03526 (patch)
treebb95603713ef08619ee12590662fb433ee6bb0a3
parent54f4cdd017b514cf031a001ef9d9bc6ebc8ecf5d (diff)
downloadbiblio-62402a1fefd04ba157221aaf99d3578d9fa03526.tar.gz
biblio-62402a1fefd04ba157221aaf99d3578d9fa03526.tar.bz2
Feat: Markdown inclusion generator (compatible with Pandoc)
-rw-r--r--TODO.md4
-rw-r--r--_biblio.yml53
-rwxr-xr-xbin/biblio-yml23
3 files changed, 79 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 2a12d89..e30659b 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,5 +1,7 @@
# TODO
+* [ ] Meta:
+ * [ ] Turn remote repositories public.
* [ ] Types:
* [ ] Check whether Pandoc, pibtex and other tools/libs support custom bib types.
* [ ] Adopt custom bibliography types such as `comic`, `movie`, `dossier` etc.
@@ -15,4 +17,4 @@
* [ ] Search tool, maybe based on AWK:
https://tex.stackexchange.com/questions/28506/how-to-use-a-command-line-tool-to-extract-a-bibtex-reference-that-contains-a-sea
* [ ] ISBN to BibTeX.
- * [ ] Markdown inclusion generator.
+ * [x] Markdown inclusion generator (`_biblio.yml`) that can be easily symlinked.
diff --git a/_biblio.yml b/_biblio.yml
new file mode 100644
index 0000000..75a0cb2
--- /dev/null
+++ b/_biblio.yml
@@ -0,0 +1,53 @@
+# Bibliography sources
+# Automatically generated by biblio-yml
+bibliography:
+ - biblio/ai.bib
+ - biblio/anthropology.bib
+ - biblio/art.bib
+ - biblio/biography.bib
+ - biblio/biology.bib
+ - biblio/brazil.bib
+ - biblio/cepik.bib
+ - biblio/chemistry.bib
+ - biblio/cognition.bib
+ - biblio/computing.bib
+ - biblio/cybernetics.bib
+ - biblio/cybersyn.bib
+ - biblio/dictatorship.bib
+ - biblio/economics.bib
+ - biblio/environment.bib
+ - biblio/epistemology.bib
+ - biblio/future.bib
+ - biblio/geopolitics.bib
+ - biblio/greece.bib
+ - biblio/hermeneutics.bib
+ - biblio/history.bib
+ - biblio/incoming.bib
+ - biblio/information.bib
+ - biblio/law.bib
+ - biblio/lexicon.bib
+ - biblio/literature.bib
+ - biblio/main.bib
+ - biblio/math.bib
+ - biblio/methodology.bib
+ - biblio/misc.bib
+ - biblio/movies.bib
+ - biblio/music.bib
+ - biblio/neuroscience.bib
+ - biblio/philology.bib
+ - biblio/philosophy.bib
+ - biblio/physics.bib
+ - biblio/politics.bib
+ - biblio/prison.bib
+ - biblio/psychology.bib
+ - biblio/rome.bib
+ - biblio/seafaring.bib
+ - biblio/security.bib
+ - biblio/sociology.bib
+ - biblio/spy.bib
+ - biblio/surveillance.bib
+ - biblio/technology.bib
+ - biblio/theology.bib
+ - biblio/torture.bib
+ - biblio/unsorted.bib
+ - biblio/war.bib
diff --git a/bin/biblio-yml b/bin/biblio-yml
new file mode 100755
index 0000000..af8695c
--- /dev/null
+++ b/bin/biblio-yml
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+#
+# Markdown inclusion generator that can be easily symlinked/copied by
+# Pandoc-compatible works.
+#
+
+# Parameters
+BASENAME="`basename $0`"
+DIRNAME="`dirname $0`"
+BASEDIR="$DIRNAME/.."
+
+# Go to main folder
+cd $BASEDIR
+
+# Header
+echo "# Bibliography sources"
+echo "# Automatically generated by $BASENAME"
+echo "bibliography:"
+
+# Compile
+for file in *.bib; do
+ echo " - biblio/$file"
+done