-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathexample_invocation.sh
More file actions
executable file
·29 lines (23 loc) · 1.07 KB
/
example_invocation.sh
File metadata and controls
executable file
·29 lines (23 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env sh
set -e
blogdir="/tmp/lazyblorg/blog"
# create the output directory (and parents):
mkdir -p ${blogdir}
# get help on the following parameters:
# uv --project . run ./lazyblorg.py --help
# when setting up your own system, you might want to:
# 1. have separate directories for generating your blog and staging/publishing your blog
# 2. copy generated blog data to staging/publishing directory
# 3. point --previous-metadata to the corresponding pk-file in your staging/publishing directory
# 4. modify --orgfiles so that your org-mode files are parsed
# don't forget to include your version of «about-placeholder.org» and «blog-format.org»
uv --project . run ./lazyblorg.py \
--targetdir "${blogdir}" \
--previous-metadata "${blogdir}/metadata.pk" \
--new-metadata "${blogdir}/metadata.pk" \
--logfile "${blogdir}/logfile.org" \
--orgfiles "./testdata/end_to_end_test/orgfiles/test.org" \
"./testdata/end_to_end_test/orgfiles/about-placeholder.org" \
"./templates/blog-format.org" $@
cp -v templates/*.css "${blogdir}/"
#END