blog.ari.lt/README.md
Ari Archer 483fc41c0b
update @ Mon 31 Oct 03:28:33 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-10-31 03:28:33 +02:00

1.8 KiB

Ari-web blogs

Installing dependencies

$ python3 -m virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Or

$ python3 -m pip install --user -r requirements.txt

Completions

  • Bash
$ . completions/blog.bash

Building

  • Generate full-on static site
$ CI=1 ./scripts/blog static
  • Only build blogs
$ CI=1 ./scripts/blog static

CI environment variable is optional, though setting it in a build/CI environment is good to save time on some operations that are useless in that context, for example sorting blogs.

CI can have any value.

The API

Nobody is stopping you from using the static API, it's located at /blog.json, also if you're using this API generally, this API is extremely large, so I implemented cache validation, just cache it, including the sha256 hash and validate it with the hash on the api