fix docs build (#112)
* fix docs build * fix timestamp * fix deploy script * fix
This commit is contained in:
parent
a9c4faa338
commit
c05e5fa44a
6 changed files with 11 additions and 24 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
+++
|
||||
|
||||
|
|
|
@ -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
|
||||
+++
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue