mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sun 12 Jun 10:25:36 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
b5dbb1d154
commit
18ace363bb
3 changed files with 7 additions and 7 deletions
10
README.md
10
README.md
|
@ -39,21 +39,21 @@ $ . completions/blog.bash
|
|||
- Generate full-on static site
|
||||
|
||||
```bash
|
||||
$ CI_BUILD=1 ./scripts/blog static
|
||||
$ CI=1 ./scripts/blog static
|
||||
```
|
||||
|
||||
- Only build blogs
|
||||
|
||||
```bash
|
||||
$ CI_BUILD=1 ./scripts/blog static
|
||||
$ CI=1 ./scripts/blog static
|
||||
```
|
||||
|
||||
`CI_BUILD` environment variable is optional,
|
||||
though setting it in a build/ci environment is good
|
||||
`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_BUILD` can have any value.
|
||||
`CI` can have any value.
|
||||
|
||||
## The API and hidden blogs
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build]
|
||||
command = "CI_BUILD=1 python3 ./scripts/blog static"
|
||||
command = "python3 ./scripts/blog static"
|
||||
|
||||
[[redirects]]
|
||||
from = "/git/*"
|
||||
|
|
|
@ -688,7 +688,7 @@ def main() -> int:
|
|||
"TIME",
|
||||
)
|
||||
|
||||
not_ci_build = not os.getenv("CI_BUILD")
|
||||
not_ci_build = not os.getenv("CI")
|
||||
|
||||
if config["blogs"] and not_ci_build:
|
||||
log("Sorting blogs by creation time...", "CLEANUP")
|
||||
|
|
Loading…
Add table
Reference in a new issue