fix docs build (#112)

* fix docs build

* fix timestamp

* fix deploy script

* fix
This commit is contained in:
Ayrat Badykov 2023-02-26 11:23:00 +02:00 committed by GitHub
parent a9c4faa338
commit c05e5fa44a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 24 deletions

View file

@ -9,7 +9,7 @@ lead = '<b>Fang</b> is a background task processing for Rust. It uses Postgres D
url = "/docs/readme"
url_button = "Get started"
repo_version = "GitHub v0.10.1"
repo_version = "GitHub v0.10.2"
repo_license = "Open-source MIT License."
repo_url = "https://github.com/ayrat555/fang"

View file

@ -1,8 +1,8 @@
+++
title = "Authors"
description = "The authors of the blog articles."
date = 2022-09-06T8:00:00+00:00
updated = 2022-09-06T8:00:00+00:00
date = 2022-09-06T08:00:00.00Z
updated = 2022-09-06T08:00:00.00Z
draft = false
# Authors

View file

@ -1,8 +1,8 @@
+++
title = "Ayrat Badykov"
description = "Creator of Fang."
date = 2021-04-01T08:50:45+00:00
updated = 2021-04-01T08:50:45+00:00
date = 2021-04-01T08:50:45.00Z
updated = 2021-04-01T08:50:45.00Z
draft = false
+++

View file

@ -1,8 +1,8 @@
+++
title = "Pepe Márquez Romero"
description = "Co-Creator of Fang."
date = 2021-04-01T08:50:45+00:00
updated = 2021-04-01T08:50:45+00:00
date = 2021-04-01T08:50:45.00Z
updated = 2021-04-01T08:50:45.00Z
draft = false
+++

View file

@ -1,8 +1,8 @@
+++
title = "Docs"
description = "The documentation of Fang library."
date = 2022-09-06T08:00:00+00:00
updated = 2022-09-06T08:00:00+00:00
date = 2022-09-06T08:00:00.00Z
updated = 2022-09-06T08:00:00.00Z
template = "docs/section.html"
sort_by = "weight"
weight = 4

View file

@ -3,23 +3,10 @@ set -e
BRANCH="gh-pages"
current_time() {
TIME=$(date -u --rfc-3339=seconds)
DATE=$(echo $TIME | cut -d' ' -f1)
HOUR=$(echo $TIME | cut -d' ' -f2)
VALID_TIME=${DATE}T${HOUR}
echo $VALID_TIME
}
build() {
echo "Starting building..."
TIME=$(current_time)
TIME=$(date +"%m-%d-%YT%H:%M:%S.00Z")
printf "+++\ntitle = \"CHANGELOG\"\ndate = $TIME\nupdated = $TIME\ndraft = false\nweight = 410\nsort_by = \"weight\"\ntemplate = \"docs/page.html\"\n\n[extra]\ntoc = true\ntop = false\n+++\n\n" > docs/content/docs/CHANGELOG.md
@ -29,7 +16,7 @@ build() {
cat README.md >> docs/content/docs/README.md
cp -R docs ../docs_backup
rm -r *
cp -R ../docs_backup ./docs