cosmicflow/build_exocortex.sh

28 lines
905 B
Bash
Raw Permalink Normal View History

2025-03-02 13:50:52 +05:30
#This script creates the exocortex
# start clean
rm -rf ./public/exocortex-hugo-md/public/*
rm -rf ./public/exocortex-hugo-md/content/
2025-03-03 16:47:38 +05:30
# sync bibtex references
rsync -avi ~/projects/thought_garden/References.bib ./public/exocortex-hugo-md/References.bib
2025-03-02 13:50:52 +05:30
# create hugo md files using ox-hugo
emacs -Q --batch -l ox-hugo-exocortex.el
# build create html files from hugo markdown files using quartz
cd ./public/exocortex-hugo-md/
npx quartz build
cd ../../
# copy latex images into the public directory
rsync -avi --delete ../thought_garden/ltximg/ ./public/exocortex-hugo-md/public/ltximg/
2025-03-13 20:17:33 +05:30
# copy normal images into the public directory
rsync -avi --delete ../thought_garden/images/ ./public/exocortex-hugo-md/public/ox-hugo/
2025-03-02 13:50:52 +05:30
# copy the generated folder to the main public site
rsync -avi --delete ./public/exocortex-hugo-md/public/ ./public/cosmicflow-html/exocortex/
2025-03-02 13:50:52 +05:30
echo "exocortex created"