aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-09 11:43:57 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-09 11:43:57 +0100
commitab90f9241d0867206858c306c8d7fb08ee7f0275 (patch)
treed5061787f1ffab4e4a55bf664f1be3e54279ce10
parent08fe9f739dcf1570ce0321db979a410fe61ebd60 (diff)
downloadbookup-ab90f9241d0867206858c306c8d7fb08ee7f0275.tar.gz
bookup-ab90f9241d0867206858c306c8d7fb08ee7f0275.tar.bz2
Feat: automatically include all _biblio.yml files in the output
-rw-r--r--_biblio.yml4
-rwxr-xr-xbin/compile-book4
2 files changed, 7 insertions, 1 deletions
diff --git a/_biblio.yml b/_biblio.yml
index e69de29..c86ad9e 100644
--- a/_biblio.yml
+++ b/_biblio.yml
@@ -0,0 +1,4 @@
+# Bibliography sources
+#bibliography:
+# # Custom entries
+# - images/images.bib
diff --git a/bin/compile-book b/bin/compile-book
index 42f7f67..75c417b 100755
--- a/bin/compile-book
+++ b/bin/compile-book
@@ -18,7 +18,9 @@ rm -f $OUTPUT.md $OUTPUT.Rmd
cat _bookup.yml >> $OUTPUT.md ; echo "" >> $OUTPUT.md
# Bibliography
-cat _biblio.yml >> $OUTPUT.md ; echo "" >> $OUTPUT.md
+find -name _biblio.yml | while read file; do
+ cat $file >> $OUTPUT.md ; echo "" >> $OUTPUT.md
+done
# YAML headers
for file in $BASEDIR/structure/00*.yml; do