adjust files to allow more auto-generation

This commit is contained in:
Malin Freeborn 2024-06-09 15:19:12 +02:00
parent 53772cb717
commit 63e1353e5f
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
3 changed files with 11 additions and 3 deletions

View File

@ -26,7 +26,7 @@ overview.pdf:| rubbish/overview.pdf
rubbish/overview.pdf: overview.tex
overview.tex: overview.md | rubbish/
lowdown -stlatex overview.md > overview.tex
lowdown -stlatex -m shiftheadinglevelby=1 overview.md > overview.tex
rubbish/overview.pdf: overview.tex
pdflatex -output-directory rubbish/ overview.tex

View File

@ -10,7 +10,7 @@ Plan
Read the overview.
PDF Dependencies
Dependencies
============
- `texlive`

View File

@ -2,6 +2,13 @@
target="$1"
cd "$(dirname "$target")"
fileName="$(basename "$target")"
sectionName="$(basename -s .md "$target" | tr '_' ' ')"
printf "\n\n# $sectionName\n"
while read -r line; do
echo "$line" | grep -q '^.so ' && \
file="$(echo "$line" | grep '^.so ' | cut -d' ' -f2 )" && \
@ -10,4 +17,5 @@ echo "$line" | grep -q '^.so ' && \
cat "$file" | graph-easy --boxart && \
echo '```' || \
echo "$line"
done < "$target"
done < "$fileName"