update @ Sun 12 Jun 10:25:36 EEST 2022

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-06-12 10:25:37 +03:00
parent b5dbb1d154
commit 18ace363bb
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2
3 changed files with 7 additions and 7 deletions

View file

@ -39,21 +39,21 @@ $ . completions/blog.bash
- Generate full-on static site - Generate full-on static site
```bash ```bash
$ CI_BUILD=1 ./scripts/blog static $ CI=1 ./scripts/blog static
``` ```
- Only build blogs - Only build blogs
```bash ```bash
$ CI_BUILD=1 ./scripts/blog static $ CI=1 ./scripts/blog static
``` ```
`CI_BUILD` environment variable is optional, `CI` environment variable is optional,
though setting it in a build/ci environment is good though setting it in a build/CI environment is good
to save time on some operations that are useless to save time on some operations that are useless
in that context, for example sorting blogs. in that context, for example sorting blogs.
`CI_BUILD` can have any value. `CI` can have any value.
## The API and hidden blogs ## The API and hidden blogs

View file

@ -1,5 +1,5 @@
[build] [build]
command = "CI_BUILD=1 python3 ./scripts/blog static" command = "python3 ./scripts/blog static"
[[redirects]] [[redirects]]
from = "/git/*" from = "/git/*"

View file

@ -688,7 +688,7 @@ def main() -> int:
"TIME", "TIME",
) )
not_ci_build = not os.getenv("CI_BUILD") not_ci_build = not os.getenv("CI")
if config["blogs"] and not_ci_build: if config["blogs"] and not_ci_build:
log("Sorting blogs by creation time...", "CLEANUP") log("Sorting blogs by creation time...", "CLEANUP")