From 75ccd9eda950cf571ae21346fb57fc4952594800 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Sat, 11 Jul 2026 10:49:45 -0400 Subject: Disable original srht builds, submission page content tweaks --- .builds/deploy.yml | 31 ------------------------------- .builds/format.yml | 26 -------------------------- .builds_disabled/deploy.yml | 31 +++++++++++++++++++++++++++++++ .builds_disabled/format.yml | 26 ++++++++++++++++++++++++++ submit.md | 4 ++-- 5 files changed, 59 insertions(+), 59 deletions(-) delete mode 100644 .builds/deploy.yml delete mode 100644 .builds/format.yml create mode 100644 .builds_disabled/deploy.yml create mode 100644 .builds_disabled/format.yml diff --git a/.builds/deploy.yml b/.builds/deploy.yml deleted file mode 100644 index 7f1769f..0000000 --- a/.builds/deploy.yml +++ /dev/null @@ -1,31 +0,0 @@ -image: debian/stable -oauth: pages.sr.ht/PAGES:RW -packages: -- hut -- ruby-full -- ruby-dev -secrets: - - 232c738f-79b2-4296-bd8e-e9eff01bae60 -environment: - repo: 1mb-club - site: 1mb.club -submitter: - git.sr.ht: - enabled: true - allow-refs: - - refs/heads/deploy -tasks: -- install-bundler: | - cd $repo - sudo gem install bundler -- jekyll-build: | - cd $repo - sudo bundle install - sudo bundle exec jekyll build -- package-site: | - cd $repo/_site - tar -cvzh . > ../site.tar.gz -- deploy: | - hut pages publish -d $site --site-config $repo/siteconfig.json $repo/site.tar.gz -- deploy-www: | - hut pages publish -d www.$site --site-config $repo/siteconfig.json $repo/site.tar.gz \ No newline at end of file diff --git a/.builds/format.yml b/.builds/format.yml deleted file mode 100644 index b6fd808..0000000 --- a/.builds/format.yml +++ /dev/null @@ -1,26 +0,0 @@ -image: alpine/edge -packages: - - yq - - git - - openssh -secrets: - - 5d886ccb-5515-441d-8cc7-0af8892e4022 -sources: - - https://git.sr.ht/~bt/1mb-club -submitter: - git.sr.ht: - enabled: true - allow-refs: - - refs/heads/master -tasks: - - format-sites: | - cd 1mb-club - git checkout master - git log -1 --pretty=format:'%an' | grep -q "Formatting Bot" && exit 0 - git config user.email "bot@1mb.club" - git config user.name "Formatting Bot" - git remote set-url origin git@git.sr.ht:~bt/1mb-club - ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts - yq --inplace 'sort_by(.domain)' _data/sites.yml - sed -i '1!s/- domain:/\n- domain:/g' _data/sites.yml - git diff --quiet || (git commit -am "Fix formatting" && git push origin master) \ No newline at end of file diff --git a/.builds_disabled/deploy.yml b/.builds_disabled/deploy.yml new file mode 100644 index 0000000..7f1769f --- /dev/null +++ b/.builds_disabled/deploy.yml @@ -0,0 +1,31 @@ +image: debian/stable +oauth: pages.sr.ht/PAGES:RW +packages: +- hut +- ruby-full +- ruby-dev +secrets: + - 232c738f-79b2-4296-bd8e-e9eff01bae60 +environment: + repo: 1mb-club + site: 1mb.club +submitter: + git.sr.ht: + enabled: true + allow-refs: + - refs/heads/deploy +tasks: +- install-bundler: | + cd $repo + sudo gem install bundler +- jekyll-build: | + cd $repo + sudo bundle install + sudo bundle exec jekyll build +- package-site: | + cd $repo/_site + tar -cvzh . > ../site.tar.gz +- deploy: | + hut pages publish -d $site --site-config $repo/siteconfig.json $repo/site.tar.gz +- deploy-www: | + hut pages publish -d www.$site --site-config $repo/siteconfig.json $repo/site.tar.gz \ No newline at end of file diff --git a/.builds_disabled/format.yml b/.builds_disabled/format.yml new file mode 100644 index 0000000..b6fd808 --- /dev/null +++ b/.builds_disabled/format.yml @@ -0,0 +1,26 @@ +image: alpine/edge +packages: + - yq + - git + - openssh +secrets: + - 5d886ccb-5515-441d-8cc7-0af8892e4022 +sources: + - https://git.sr.ht/~bt/1mb-club +submitter: + git.sr.ht: + enabled: true + allow-refs: + - refs/heads/master +tasks: + - format-sites: | + cd 1mb-club + git checkout master + git log -1 --pretty=format:'%an' | grep -q "Formatting Bot" && exit 0 + git config user.email "bot@1mb.club" + git config user.name "Formatting Bot" + git remote set-url origin git@git.sr.ht:~bt/1mb-club + ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts + yq --inplace 'sort_by(.domain)' _data/sites.yml + sed -i '1!s/- domain:/\n- domain:/g' _data/sites.yml + git diff --quiet || (git commit -am "Fix formatting" && git push origin master) \ No newline at end of file diff --git a/submit.md b/submit.md index f8cd486..19d2fba 100644 --- a/submit.md +++ b/submit.md @@ -19,9 +19,9 @@ permalink: "submit/" ## How to Submit -1. Do a [Cloudflare URL Scan](https://radar.cloudflare.com/scan) of your website +1. Do a [Debugbear Website Scan](https://www.debugbear.com/test/website-speed) of your website 2. Once complete, check the "Bytes Total" stat in the "Network" card to make sure the **uncompressed** size of your site is less than 1MB -3. If your site satisfies this requirement, add it to the existing `_data/sites.yml` file (following the same format as other members) and [open a PR](https://codeberg.org/btxx/1mb-club) or [submit a patch via email](https://lists.sr.ht/~bt/1mb-club-devel) if that's your jam +3. If your site satisfies this requirement, add it to the existing `_data/sites.yml` file (following the same format as other members) and [open a PR](https://codeberg.org/btxx/1mb-club) or [submit a patch via email](https://lists.sr.ht/~bt/1mb-club-devel) (if that's your jam) 4. I will then review your patch and merge it into master. Once merged, your site will be added to the list. > **Note:** Don't worry about where you place your content inside the existing `_data/sites.yml` file. The order will be automatically reformatted once it is approved and merged into `master`. -- cgit v1.3.1