M Makefile => Makefile +4 -1
@@ 99,11 99,14 @@ watch:
.PHONY: publish_html
publish_html: all_html
+ BASE_URL="${BASE_URL}" \
BUILD=$(BUILD_HTML) bash scripts/publish_srht.sh
.PHONY: publish_gmi
publish_gmi: all_gmi
- BUILD=$(BUILD_GMI) PROTOCOL=GEMINI bash scripts/publish_srht.sh
+ BASE_URL="${BASE_URL}" \
+ PROTOCOL=GEMINI \
+ BUILD=$(BUILD_GMI) bash scripts/publish_srht.sh
###############################################################################
# Cleaning
M => +4 -4
@@ 1,16 1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://sroccaserra.fr/rss.xml" rel="self" type="application/rss+xml" />
<atom:link href="__protocol://__base_url/rss.xml" rel="self" type="application/rss+xml" />
<title>Apprendre + Équipe = Programmes</title>
<link>https://sroccaserra.fr</link>
<link>__protocol://__base_url</link>
<description>
Des notes sur ce que j'observe dans les métiers liés à la
conception de logiciels
</description>
<image>
<url>https://sroccaserra.fr/favicon.ico</url>
<link>https://sroccaserra.fr</link>
<url>__protocol://__base_url/favicon.ico</url>
<link>__protocol://__base_url</link>
</image>
<!-- contents -->
M => +1 -1
@@ 34,6 34,6 @@ function rss_items() {
done
}
up_to "-- contents --" "$src"
up_to "-- contents --" "$src" | m4 -D __protocol="${PROTOCOL}" -D __base_url="${BASE_URL}"
rss_items
after "-- contents --" "$src"
M scripts/publish_srht.sh => scripts/publish_srht.sh +1 -1
@@ 11,4 11,4 @@ source .env && \
curl --oauth2-bearer "$srht_token" \
-Fcontent=@site.tar.gz \
-Fprotocol=${PROTOCOL:-} \
- https://pages.sr.ht/publish/sroccaserra.fr
+ https://pages.sr.ht/publish/${BASE_URL}