mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
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.
35 lines
753 B
Makefile
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
|