From 6e67a846f060ff6bb436cd2ff269b181ac52980c Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Sun, 14 Jul 2024 11:57:49 -0400 Subject: Update barf script and include sourcehut build file --- .build.yml | 21 +++++++++ .gitignore | 1 + barf | 81 +++++++++++++++++++++++++++++----- footer.html | 2 +- index.md | 2 +- posts/2024-01-10-introducing-jsfree.md | 2 +- 6 files changed, 94 insertions(+), 15 deletions(-) create mode 100644 .build.yml create mode 100644 .gitignore diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..63bba05 --- /dev/null +++ b/.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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/barf b/barf index 81bbcd2..5c0db4d 100755 --- a/barf +++ b/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 diff --git a/index.md b/index.md index b0814c2..f927869 100644 --- a/index.md +++ b/index.md @@ -19,7 +19,7 @@ If you're looking for the reasoning behind this project, read [Introducing jsfre 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. diff --git a/posts/2024-01-10-introducing-jsfree.md b/posts/2024-01-10-introducing-jsfree.md index af75e82..77bdf59 100644 --- a/posts/2024-01-10-introducing-jsfree.md +++ b/posts/2024-01-10-introducing-jsfree.md @@ -20,7 +20,7 @@ So, if you feel offended by the concept of others not liking JavaScript, maybe g 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. -- cgit v1.2.3-54-g00ecf