a webring manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hazel Levine ff88ce0964
type most of it: v. 0.2.0
1 month ago
contrib add /pre and fix css 2 months ago
nix nix 4 months ago
src type most of it: v. 0.2.0 1 month ago
static wip refactor 2 months ago
.envrc nix 4 months ago
.gitignore font fixes 4 months ago
LICENSE Initial commit 5 months ago
README.md add /pre and fix css 2 months ago
default.nix type most of it: v. 0.2.0 1 month ago
main.rkt add /pre and fix css 2 months ago
shell.nix nix 4 months ago
users.txt wip refactor 2 months ago

README.md

Perihelion

A webring manager, notably in use for the Armisael Webring.

Running

racket main.rkt /path/to/static/files /path/to/users.txt

It should be running on localhost:5020. You can then set up an nginx proxy_pass for HTTPS, etc.

Compiling

raco exe main.rkt

Including

First off, you have to be on the webring. Then add this to your page:

<iframe src="https://ring.qtp2t.club/your-username/pre" frameBorder="no" scrolling="no" height="60" width="800"></iframe>

Note that the page indexes at 1, but the ID indexes at zero.

If you want to get the raw HTML without CSS, for use outside of an iframe, you can use the /username/raw endpoint.

On custom styling

HTML has no raw include from external sources without doing weird things with JavaScript or the webserver, which is problematic. If my CSS clashes with your site's aesthetic, you can use the Racket script in contrib/style.rkt to fetch just the div, and run said script on a cronjob to periodically update it (in case of an added member).

If you mess this up (on Armisael) I will be unhappy.

Documentation is provided in the comments of that script.

I have a problem!

Sucks.