commit 6e67a846f060ff6bb436cd2ff269b181ac52980c from: Bradley Taunt date: Sun Jul 14 15:57:49 2024 UTC Update barf script and include sourcehut build file commit - 3c43241df609a5331318a1fc303c92a321daf454 commit + 6e67a846f060ff6bb436cd2ff269b181ac52980c blob - /dev/null blob + 63bba05450c3eae762ecf76b9e32be365c52c8df (mode 644) --- /dev/null +++ .build.yml @@ -0,0 +1,21 @@ +image: alpine/latest +oauth: pages.sr.ht/PAGES:RW +packages: +- rsync +- coreutils +- lowdown +- go +- hut +environment: +site: jsfree.org +sources: +- https://git.sr.ht/~bt/jsfree.org +tasks: +- build: | + cd jsfree.org + make build +- package: | + cd jsfree.org/build + tar -cvz . > ../../site.tar.gz +- upload: | + hut pages publish -d jsfree.org site.tar.gz \ No newline at end of file blob - /dev/null blob + d16386367f7cd7dd3c1842c484239e9e82a25efc (mode 644) --- /dev/null +++ .gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file blob - 81bbcd2bc21da39eab9f8673b3b79405892919f9 blob + 5c0db4d36ddddd7eb7ea4f93a1dc28943a5a66b7 --- barf +++ barf @@ -1,9 +1,24 @@ #!/bin/sh + +domain="https://jsfree.org" + +# Check the operating system +os_name=$(uname -s) + +if [ "$os_name" = "OpenBSD" ]; then + alias sed=gsed + alias date=gdate + alias rsync=openrsync +elif [ "$os_name" = "Darwin" ]; then + alias sed=gsed + alias date=gdate +fi + set -eu -MARKDOWN=smu +MARKDOWN=lowdown IFS=' ' -# Create tab separated file with filename, title, creation date, last update +# Create tab-separated file with filename, title, creation date, last update index_tsv() { for f in "$1"/*.md do @@ -20,13 +35,13 @@ index_html() { # Intro text $MARKDOWN index.md - echo " Built with barf.
- Hosted on NearlyFreeSpeech.net.
+ Hosted on sourcehut.
The code for this site is MIT.
\ No newline at end of file blob - b0814c2ea4d27b362f99d95b528d7b7f5ac8da66 blob + f927869c1a4191a939ddb8e4eff340a8b332ba76 --- index.md +++ index.md @@ -19,7 +19,7 @@ If you're looking for the reasoning behind this projec Things you can do to contribute to the project (in order of importance): -* [Submit a patch](mailto:jsfree@patches.btxx.org) for new service/category suggestions or improvements to the main website. +* [Submit a patch](https://git.sr.ht/~bt/jsfree.org) for new service/category suggestions or improvements to the main website. * Create your own JavaScript-free web service / application. (Then submit it!) * Spread the word, so the world knows they can go JavaScript-free. blob - af75e82a33bcd3abcfc92d4f2ae2c8f27b3bdfb5 blob + 77bdf5912d6b179412a909dc6afca067451cfc9d --- posts/2024-01-10-introducing-jsfree.md +++ posts/2024-01-10-introducing-jsfree.md @@ -20,7 +20,7 @@ So, if you feel offended by the concept of others not I'm far from an expert in the field of "all-things JavaScript-free". Consider helping me out and making this site even better! -* [Submit](mailto:jsfree@patches.btxx.org) service/category suggestions or improvements to the main website. +* [Submit](https://git.sr.ht/~bt/jsfree.org) service/category suggestions or improvements to the main website. * Create your own JavaScript-free web service / application. (Then submit it!) * Spread the word, so the world knows they can go JavaScript-free.