Files
radicle.xyz/Makefile
T
Lorenz Leutgeb 774a5b48cd releases: Generate Information at Build Time
Instead of requiring JavaScript to dynamically fetch release metadata,
generate at build time of the website, and only use JavaScript to change
the data if it does not match what is served by files.radicle.dev.
This allows users to obtain information about releases and download URLs
without having JavaScript enabled.
2026-05-02 19:02:16 +02:00

35 lines
753 B
Makefile

FILES := https://files.radicle.dev
default: build
build: releases
bundle exec jekyll build $(CONFIG)
serve: releases
bundle exec jekyll serve $(CONFIG) --port 3000 --livereload
# NOTE: Manually keep these consistent with `_config.yml`.
releases:
curl -s -o _data/releases/radicle.json $(FILES)/releases/latest/radicle.json
curl -s -o _data/releases/radicle-httpd.json $(FILES)/releases/radicle-httpd/latest/radicle-httpd.json
dependencies:
gem install jekyll
cloudflare:
sudo gem install bundler
bundle config path vendor/bundle
bundle install
bundle exec jekyll build $(CONFIG)
svgs:
scripts/cleanup-svgs.sh assets/images/*.svg
publish: default
wrangler deploy --name="website"
clean:
@rm -rfv _site
.PHONY: default publish clean