Skip to content

Commit

Permalink
Adde scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wulffern committed Oct 26, 2023
1 parent 8164400 commit fa0ace6
Show file tree
Hide file tree
Showing 22 changed files with 12,700 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ images.txt
ip/

# Distribution / packaging
media/
pdf/*.latex
pdf/*_fiximg.tex
pdf/*.md
Expand Down
52 changes: 52 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

JEKYLL_VERSION=3.8
SITE=${shell pwd}/docs

.PHONY: slides

FILES = lectures/l00_diode \
lectures/l00_refresher \
lectures/lp_project_report \
# lectures/l01_intro \
lectures/l02_esd \
lectures/l03_refbias \
lectures/l04_afe \
lectures/l05_sc \
lectures/l06_adc \
lectures/l07_vreg \
lectures/l08_pll \
lectures/l09_osc \
lectures/l10_lpradio \
lectures/l11_aver \
lectures/lx_energysrc

all: posts latex book

posts:
-rm images.txt
cp syllabus.md docs/syllabus.md
cp plan.md docs/plan.md
${foreach f, ${FILES}, python3 py/lecture.py post ${f}.md || exit; }
cd lectures; cat ../images.txt |xargs git add -f


jstart:
docker run --rm --name aic_docs --volume="${SITE}:/srv/jekyll" -p 3002:4000 -it jekyll/jekyll:${JEKYLL_VERSION} jekyll serve --watch --drafts

latex:
-mkdir pdf/media
python3 py/lecture.py latex lectures/tex_intro.md
${foreach f, ${FILES}, python3 py/lecture.py latex ${f}.md || exit ; }
cd pdf; make one
cp pdf/aic.pdf docs/assets/

book:
cd pdf; make ebook
cp pdf/aic.epub docs/assets/

slides:
${foreach f, ${FILES}, ${MAKE} slide FILE=$f; }


slide:
python3 py/deckpdf.py ${FILE}.md docs/slides/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# aic2024
Advanced Integrated Circuits 2024
Loading

0 comments on commit fa0ace6

Please sign in to comment.