# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 28
# self = https://watcher.sour.is/conv/6sur6eq
Just added support for custom themes to yarnd as a first-class "thing". Just point yarnd -t /path/to/theme and you're good to go πŸ₯³
Just added support for custom themes to yarnd as a first-class "thing". Just point yarnd -t /path/to/theme and you're good to go πŸ₯³
@prologic what is expected to be at /path/to/theme? A CSS? Name?
@fastidious I'll have to test it.
@fastidious I assume it's just a CSS file.
@adi I never assume. That's why I ask. Looking at the code, it looks like there are templates involved as well. Again, I will wait for @prologic on this.
@fastidious Oh, I assume, I may be be wrong tho.
@fastidious Yup, templates involved, that's cool.
@fastidious A whole copy of the default theme but modified πŸ‘Œ
@fastidious A whole copy of the default theme but modified πŸ‘Œ
@prologic so, a directory with β€œstatic” and β€œtemplates” in it?
@fastidious Yup. Basically if you cp -a ./internal/theme /path/to/your_theme and modify to suit, you're good to go!
@fastidious Yup. Basically if you cp -a ./internal/theme /path/to/your_theme and modify to suit, you're good to go!
@prologic Works well πŸ‘Œ\n\nJust a note, I _did_ have to add the appropriate line in Makefile to also minify the CSS files in my custom theme folder, as obviously by default it will just process the default theme files.
@eldersnake Good point. This probably needs documenting? πŸ€” One to add to the wiki? πŸ€”
@eldersnake Good point. This probably needs documenting? πŸ€” One to add to the wiki? πŸ€”
eg:\n\nminify -b -o ./mytheme/static/css/twtxt.min.css ./mytheme/static/css/[0-9]*-*.css;
@prologic https://git.mills.io/yarnsocial/yarn/wiki/Using-Custom-Themes\n\nNot sure if it's better to just tell people to run the minify command manually instead of editing the Makefile or not. For mine that is kinda what a Makefile is for, but the next time the origin/HEAD version of it is modified the user will still have to merge/custom commit it πŸ€” I'm probably overthinking this though.
@eldersnake Yeah it's probably better to avoid making local changes because that increase overhead of having to track upstream changes.

The thing is it doesn't actually really matter what tool you use to minify your static assets, just as long as you do because in production mode (non-debug, no -D) it will expect minified versions to exist.

Great work on the WIki page, first one! πŸ™Œ πŸ₯³
@eldersnake Yeah it's probably better to avoid making local changes because that increase overhead of having to track upstream changes.\n\nThe thing is it doesn't actually really matter what tool you use to minify your static assets, just as long as you do because in production mode (non-debug, no -D) it will expect minified versions to exist.\n\nGreat work on the WIki page, first one! πŸ™Œ πŸ₯³
@eldersnake Yeah it's probably better to avoid making local changes because that increase overhead of having to track upstream changes.

The thing is it doesn't actually really matter what tool you use to minify your static assets, just as long as you do because in production mode (non-debug, no -D) it will expect minified versions to exist.

Great work on the WIki page, first one! πŸ™Œ πŸ₯³
@prologic Yeah that makes sense. I removed the Makefile editing part now.
@eldersnake Cool πŸ‘Œ Might also be worthwhile mentioning you can use any valid CSS/JS minifier and link to a couple well known ones out there. The one the project uses is in fact written in Go (_I have a bias towards portable software and things written in Go 🀣_)_
@eldersnake Cool πŸ‘Œ Might also be worthwhile mentioning you can use any valid CSS/JS minifier and link to a couple well known ones out there. The one the project uses is in fact written in Go (_I have a bias towards portable software and things written in Go 🀣_)_
@prologic Yeah I guess my logic was anyone using yarnd is going to have that Go version of minify as it gets pulled down as part of make deps, but I guess I could link a couple other ones there. I've only ever used the Go one myself πŸ˜…
@eldersnake Not if they install the release binary or use the Docker image 🀣
@eldersnake Not if they install the release binary or use the Docker image 🀣
@prologic Shit, good point 🀣