1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-15 01:42:10 +00:00
Commit graph

115 commits

Author SHA1 Message Date
Seirdy
f07aa88c6c
Remove OCSP check on seirdy.one (my ocsp broke 😭) 2024-07-20 22:12:12 -04:00
Seirdy
b07f06e009
Stop using deprecated functions
- Replace getCSV with resources.Get | transform.Unmarshal. This required
  moving my CSV data to the assets directory, for some reason. Ugh.
- Switch from site.LastChange to site.Lastmod.
2024-07-14 02:08:34 -04:00
Seirdy
5a4da5f818
Add fflint checks
See https://www.fflint.dev/ and https://github.com/FileFormatInfo/fflint
2024-07-14 01:42:04 -04:00
Seirdy
eb6d1494ba
Clean up some deployment bits
- setup-ci.sh: stop writing an ssh config since I pass around options on
  the CLI.
- Makefile: tidy some things, remove unused stuff, add some docs.
- Makefile: clean up unnecessary dupe files from rsync output a bit
2024-06-20 16:08:33 -04:00
Rohan Kumar
65308d9cf8
remove unnecessary logging 2024-04-05 17:47:14 -04:00
Rohan Kumar
97439f2a92
Log webrings script 2024-04-05 17:11:02 -04:00
Rohan Kumar
33912cf42f
More logging 2024-04-05 17:03:13 -04:00
Rohan Kumar
aaa14466f2
Fix unbound var 2024-04-05 16:59:06 -04:00
Rohan Kumar
8fb3b0fb44
Don't do the extra connectivity check in CI 2024-04-05 16:56:43 -04:00
Rohan Kumar
9ed1cb8c99
make find | xargs invocations safer 2024-04-03 22:36:51 -04:00
Rohan Kumar
52ebbcec5a
print commands in setup-ci 2024-04-03 22:36:32 -04:00
Rohan Kumar
82a5c84394
Don't fetch webmentions offline 2024-04-03 22:36:00 -04:00
Rohan Kumar
06dbd52a54
Generate focus-first sites properly 2024-02-27 03:29:54 -05:00
Rohan Kumar
723bdb5a5d
Add cdata to style tag 2024-01-30 18:50:37 -05:00
Rohan Kumar
8f488a7671
reduce one indent level 2023-12-12 18:24:47 -08:00
Rohan Kumar
a870c2556a
Fix tab-reachability of preformatted blocks 2023-12-08 16:08:58 -08:00
Rohan Kumar
dc9a9e42ea
move webmention endpoint to different subdomain 2023-12-07 23:53:25 -08:00
Rohan Kumar
1eedc95339
Fix whitespace with XHTML parser
Remove leading whitespace in codeblocks that only appears when using
browser XHTML parsers for some reason.
2023-12-03 23:47:35 -08:00
Rohan Kumar
ceac2c2a57
Switch from find -exec to xargs 2023-11-29 13:40:05 -08:00
Rohan Kumar
a097b46950
Use local buku to get bookmarks if possible 2023-11-29 00:33:06 -08:00
Rohan Kumar
76a18c2541
Include more generator information.
- Add generator info to Atom feed.
- Add generator version and commit hash to meta page, along with a link
  to the last CI job if available.
- Use $JOB_URL to detect CI since that variable can be re-used to fetch
  the URL to the latest CI logs.
2023-11-27 19:38:56 -08:00
Rohan Kumar
26025d928c
re-introduce awk cmd previously thought obsolete 2023-11-27 12:27:14 -08:00
Rohan Kumar
467baf6f2b
Fix syntax error 2023-11-26 23:59:31 -08:00
Rohan Kumar
7bd1a14ef5
avoid supressing compressor errors 2023-11-26 15:54:48 -08:00
Rohan Kumar
866ca1b386
Switch soem things from find -exec to xargs
Allows better filtering and doesn't supress exit codes. Since I'm no
longer supressing exit codes, I had to handle them properly in
copy-file-to-xhtml.sh by using if-statements.

This also allowed me to skip the generation of an XHTML redirect page.
2023-11-26 15:14:06 -08:00
Rohan Kumar
c98b28f6fe
Make redirect alias valid XHTML5 2023-11-26 14:57:42 -08:00
Rohan Kumar
8971d74dac
try to get xmllint to print diagnostics 2023-11-26 14:37:07 -08:00
Rohan Kumar
33b3c5211a
Move resume to "about"
Define a redirect alias too.

This also entails special xhtmlize behavior as redirects in Hugo don't
use trailing slashes.
2023-11-26 14:28:41 -08:00
Rohan Kumar
429dcda2cd
Minify feeds with xmllint
This works particularly well on my Atom feeds with embedded XHTML.
2023-11-25 19:05:53 -08:00
Rohan Kumar
9ae88a5bef
Remove obsolete awk cmd from post-processing 2023-11-25 18:40:29 -08:00
Rohan Kumar
74ff22b8f4
remove obsolete comment 2023-11-25 18:25:37 -08:00
Rohan Kumar
c0f7318090
Trivial style fix 2023-11-25 13:41:35 -08:00
Rohan Kumar
d1711699d4
Opportunistically use pipefail 2023-11-25 13:40:52 -08:00
Rohan Kumar
6c9a8a9b20
Run Nu HTML Checker with both HTML and XML parsers
Requires silencing an HTML-only error that isn't actually an error, but
a hint that doesn't apply to polygot markup (warns against trailing
slashes which aren't a problem if you always use quotes).
2023-11-25 13:32:55 -08:00
Rohan Kumar
2e10fce294
Fix webmention issues for extended offline periods
It was still broken augh. This'll do the trick.
2023-11-25 12:59:55 -08:00
Rohan Kumar
074620f70e
Support custom timeout 2023-11-25 12:59:38 -08:00
Rohan Kumar
ba3c58dfd9
Fix perms 2023-11-24 21:04:41 -08:00
Rohan Kumar
de65f4d506
Move some CI logic to scripts/makefile
Also update some of its docs
2023-11-24 13:02:52 -08:00
Rohan Kumar
d8eae6f057
fix fetching mentions when no webmention file exists 2023-11-23 20:05:54 -08:00
Rohan Kumar
aebc49772e
Fix: exit check_cached_webmentions early 2023-11-23 20:01:54 -08:00
Rohan Kumar
226ee52f85
Format shell scripts 2023-11-23 19:06:46 -08:00
Rohan Kumar
d88d98f829
Fix get-webmentions diagnostics 2023-11-23 19:03:40 -08:00
Rohan Kumar
2b016aa973
Refactor shell scripts.
- Avoid relative paths, so I can run them from any working directory.
- Make a dedicated curl-wrapping shell script instead of re-defining the
  same alias everywhere.
- Support extended offline periods: allow get-webmentions.sh to fall
  back to the cached copy of my webmentions for up to a day, and don't
  accidentally destroy it; keep changes atomic.
- Verify that the fetched webmentions are legit before replacing the
  cached ones.
- Make shellcheck happy about quoting in vnu.sh by passing the list of
  files with xargs instead of a shell variable.
2023-11-23 18:45:03 -08:00
Rohan Kumar
88df7ba119
fix bad regex substitution 2023-11-15 10:25:27 -08:00
Rohan Kumar
3487f6b9f2
oops, stop calling tidy 2023-11-15 09:33:13 -08:00
Rohan Kumar
dd6cf95e8c
fix code block whitespace again 2023-11-15 09:32:00 -08:00
Rohan Kumar
4910a7c2c1
Quit using HTML-Tidy
See https://github.com/htacg/tidy-html5/issues/1094. The most recent
commit without that regression can't handle `dl` elements with `div`
children.
2023-11-15 09:21:26 -08:00
Rohan Kumar
0dfcced14f
Make shellcheck happy 2023-11-15 02:31:06 -08:00
Rohan Kumar
bbfa381368
Add HTML-Tidy's generator tag manually
It auto-inserts it to the start of <head> but I want it at the end.
2023-11-15 02:26:52 -08:00
Rohan Kumar
2418560975
use curl -o instead of shell redirection 2023-11-14 23:01:46 -08:00