aboutsummaryrefslogtreecommitdiff
path: root/bin/compile-notes
diff options
context:
space:
mode:
Diffstat (limited to 'bin/compile-notes')
-rwxr-xr-xbin/compile-notes16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/compile-notes b/bin/compile-notes
index 1e55dcc..efeca68 100755
--- a/bin/compile-notes
+++ b/bin/compile-notes
@@ -7,6 +7,7 @@
BASENAME="`basename $0 | sed -e 's/\(.\)/\U\1/'`"
DIRNAME="`dirname $0`"
BASEDIR="$DIRNAME/.."
+STRUCTURE="structure/notes"
OUTPUT="${1:-notes}"
REVISION="$2"
DATE="$3"
@@ -14,6 +15,21 @@ DATE="$3"
# Remove any dangling output files
rm -f $OUTPUT.md
+# Notes config
+cat _notes.yml >> $OUTPUT.md ; echo "" >> $OUTPUT.md
+cat _common.yml >> $OUTPUT.md ; echo "" >> $OUTPUT.md
+
+# Bibliography
+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
+ 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