The Ari-web blog. https://blog.ari.lt/
Find a file
Ari Archer f414ed6b5a
update @ Sun 25 Dec 23:46:04 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-12-25 23:46:04 +02:00
completions update @ Mon 31 Oct 16:50:02 EET 2022 2022-10-31 16:50:02 +02:00
content update @ Thu 15 Dec 01:00:33 EET 2022 2022-12-15 01:00:33 +02:00
scripts update @ Sun 25 Dec 04:12:35 EET 2022 2022-12-25 04:12:35 +02:00
.editorconfig init 2022-03-11 13:35:37 +02:00
.gitignore update @ Mon 31 Oct 03:28:33 EET 2022 2022-10-31 03:28:33 +02:00
blog.json update @ Sun 25 Dec 23:46:04 EET 2022 2022-12-25 23:46:04 +02:00
LICENSE update @ Sat 1 Oct 02:22:35 EEST 2022 2022-10-01 02:22:35 +03:00
netlify.toml update @ Thu 15 Dec 18:31:28 EET 2022 2022-12-15 18:31:28 +02:00
pyproject.toml update @ Sat 5 Nov 20:12:57 EET 2022 2022-11-05 20:12:57 +02:00
README.md update @ Mon 31 Oct 03:28:33 EET 2022 2022-10-31 03:28:33 +02:00
requirements.txt Switch to ujson, improve css, minify everything 2022-08-30 02:55:42 +03:00
runtime.txt update @ Sat 5 Nov 20:05:57 EET 2022 2022-11-05 20:05:57 +02:00
tox.ini init 2022-03-11 13:35:37 +02:00

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