aboutsummaryrefslogtreecommitdiff
path: root/bin/compile-notes
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-06-09 13:52:18 +0100
committerSilvio Rhatto <rhatto@riseup.net>2024-06-09 13:52:18 +0100
commit357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd (patch)
tree5c5ebfb8af21a2ca6206701616d578cb6df2e9ca /bin/compile-notes
parentb8eb79f57af861df5d22d313cb0b77cc159804f8 (diff)
downloadbookup-357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd.tar.gz
bookup-357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd.tar.bz2
Add license and version information in the notebook
Diffstat (limited to 'bin/compile-notes')
-rwxr-xr-xbin/compile-notes8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/compile-notes b/bin/compile-notes
index 6760925..02a9420 100755
--- a/bin/compile-notes
+++ b/bin/compile-notes
@@ -30,6 +30,12 @@ for file in $BASEDIR/$STRUCTURE/00*.yml; do
echo "---" >> $OUTPUT.md
done
+# Markdown headers
+for file in $BASEDIR/$STRUCTURE/00*.md; do
+ cat $file >> $OUTPUT.md
+ echo "" >> $OUTPUT.md
+done
+
# Content
find content/notes -type f | grep '\.md$' | sort | while read file; do
cat $file >> $OUTPUT.md
@@ -37,7 +43,7 @@ find content/notes -type f | grep '\.md$' | sort | while read file; do
done
# Bibliography section
-cat $BASEDIR/templates/book/bibliography.md >> $OUTPUT.md
+cat $BASEDIR/templates/notes/bibliography.md >> $OUTPUT.md
# Revision information
sed -i -e "s|%%revision%%|$REVISION|g" -e "s|%%date%%|$DATE|g" $OUTPUT.md