feat: add build script and sample config
Diff
build.sh | 23 +++++++++++++++++++++++
config.json | 10 ++++++++++
2 files changed, 33 insertions(+)
@@ -0,0 +1,23 @@
CURRENT_DIR=$(realpath $(dirname $0))
LIVEJRNL_TEMPLATE_DIR="$CURRENT_DIR/templates/"
LIVEJRNL_OUTPUT_DIR="$CURRENT_DIR/build/"
cd $CURRENT_DIR
cd livejrnl
source .venv/bin/activate
python src/livejrnl.py -t $LIVEJRNL_TEMPLATE_DIR/deadjournal/index.html.template -o $LIVEJRNL_OUTPUT_DIR/index.html --config="$CURRENT_DIR/config.json"
python src/livejrnl.py -t $LIVEJRNL_TEMPLATE_DIR/shared/rss_feed.xml.template -o $LIVEJRNL_OUTPUT_DIR/feed.xml --config="$CURRENT_DIR/config.json"
python src/livejrnl.py -t $LIVEJRNL_TEMPLATE_DIR/shared/rss_feed.xml.template -o $LIVEJRNL_OUTPUT_DIR/feed_latest.xml --cutoff=5 --config="$CURRENT_DIR/config.json"
deactivate
cd $CURRENT_DIR
mkdir -p ./build/css/
sassc -t compressed "$LIVEJRNL_TEMPLATE_DIR/deadjournal/scss/_stylesheet.scss" "$LIVEJRNL_OUTPUT_DIR/css/stylesheet.min.css"
\ No newline at end of file
@@ -0,0 +1,10 @@
{
"title": "Welcome to my LiveJrnl",
"base_url": "https://localhost",
"description": "Write a bit about your website here.",
"author": "Ashley Robin",
"author_link": "https://localhost/arobin",
"year": "2023",
"language": "en",
"rss_language": "en-gb"
}
\ No newline at end of file