diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/compile-notes | 8 |
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 |