diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-06-09 13:52:18 +0100 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-06-09 13:52:18 +0100 |
commit | 357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd (patch) | |
tree | 5c5ebfb8af21a2ca6206701616d578cb6df2e9ca /bin | |
parent | b8eb79f57af861df5d22d313cb0b77cc159804f8 (diff) | |
download | bookup-357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd.tar.gz bookup-357f332d1d9e6e0f3952a9584ebbe41a71cbf5bd.tar.bz2 |
Add license and version information in the notebook
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 |