summaryrefslogtreecommitdiff
path: root/make.sh
blob: 6d0842e448a112eea9d7f24227c773c2122c6b26 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
set -x
# Render pages
./render.sh pages/index.html www/index.html
./render.sh pages/error.html www/error.html
./render.sh pages/resources.html www/resources.html
./render.sh pages/about.html www/about.html
./render.sh pages/blog.html www/blog/index.html

# Render entries
./render.sh pages/about-her.html www/about-her.html
./render.sh pages/blog/all-signs-point-to-her.html www/blog/all-signs-point-to-her.html
./render.sh pages/blog/finding-a-safe-space.html www/blog/finding-a-safe-space.html
./render.sh pages/blog/it-was-never-about-clothes.html www/blog/it-was-never-about-clothes.html
./render.sh pages/blog/loneliness-and-solitude.html www/blog/loneliness-and-solitude.html
./render.sh pages/blog/finding-the-light.html www/blog/finding-the-light.html

# copy static files
cp -r static/* www

# tidy the HTML (this will resolve some common mistakes like & and ' etc
./tidy.sh

# RSS
./render.sh pages/blog/feed.rss www/blog/feed.rss

# Gemini
mkdir -p gemini/log
cp -r capsule/* gemini

# generate gemlog
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -I --disable-pip-version-check -r requirements.txt

touch gemini/log/index.gmi
echo -e "# The Woman In My Eye\n" > gemini/log/index.gmi

# New entries at the top
./gemparse.py entries/it-was-never-about-clothes.html gemini/log/it-was-never-about-clothes.gmi blog/it-was-never-about-clothes.html
echo "=> /log/it-was-never-about-clothes.gmi 2023-07-14 - It was never about clothes" \
     >> gemini/log/index.gmi

./gemparse.py entries/finding-a-safe-space.html gemini/log/finding-a-safe-space.gmi blog/finding-a-safe-space.html
echo "=> /log/finding-a-safe-space.gmi 2023-07-06 - Finding a safe space" \
     >> gemini/log/index.gmi

./gemparse.py entries/all-signs-point-to-her.html gemini/log/all-signs-point-to-her.gmi blog/all-signs-point-to-her.html
echo "=> /log/all-signs-point-to-her.gmi 2023-06-27 - All signs point to her" \
     >> gemini/log/index.gmi

./gemparse.py entries/about-her.html gemini/log/who-is-the-woman-in-my-eye.gmi about-her.html
echo "=> /log/who-is-the-woman-in-my-eye.gmi 2023-06-25 - Who is the woman in my eye" \
     >> gemini/log/index.gmi

./gemparse.py entries/loneliness-and-solitude.html gemini/log/loneliness-and-solitude.gmi blog/loneliness-and-solitude.html
echo "=> /log/loneliness-and-solitude.gmi 2024-04-07 - Loneliness and Solitude" \
     >> gemini/log/index.gmi
./gemparse.py entries/finding-the-light.html gemini/log/finding-the-light.gmi blog/finding-the-light.html
echo "=> /log/finding-the-light.gmi 2024-12-06 - Finding the Light" \
     >> gemini/log/index.gmi