mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Fri 27 May 00:59:22 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
a91b949fc0
commit
e0a4e2c215
8 changed files with 72 additions and 6 deletions
1
api/apis.json
Normal file
1
api/apis.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"desc":"Ari-web API list","data":["sitelist.json","apis.json","."]}
|
11
api/sitelist.json
Normal file
11
api/sitelist.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"desc": "Ari-web site list",
|
||||
"data": [
|
||||
"www.ari-web.xyz",
|
||||
"files.ari-web.xyz",
|
||||
"blog.ari-web.xyz",
|
||||
"legacy.blog.ari-web.xyz",
|
||||
"school.ari-web.xyz",
|
||||
"user.ari-web.xyz"
|
||||
]
|
||||
}
|
|
@ -77,6 +77,12 @@ const locations = {
|
|||
desc: "Ari-web comments",
|
||||
aliases: ["comment", "user", "usr", "chat"],
|
||||
},
|
||||
|
||||
11: {
|
||||
url: "/api",
|
||||
desc: "Ari-web api(s)",
|
||||
aliases: ["api", "API"],
|
||||
},
|
||||
};
|
||||
const escape_HTML = (str) =>
|
||||
str.replace(
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
status = 301
|
||||
force = true
|
||||
|
||||
[[redirects]]
|
||||
from = "/api"
|
||||
to = "/api/apis.json"
|
||||
status = 302
|
||||
force = true
|
||||
|
||||
# ARI-WEB-SPECIFIC #
|
||||
|
||||
[[redirects]]
|
||||
|
|
23
scripts/apis.sh
Executable file
23
scripts/apis.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdata() {
|
||||
while read -r line; do
|
||||
printf '"%s",' "$line"
|
||||
done
|
||||
}
|
||||
|
||||
main() {
|
||||
printf ' * %s... ' 'Generating api list'
|
||||
|
||||
{
|
||||
printf '%s' '{"desc":"Ari-web API list","data":['
|
||||
find api -type f -exec basename {} \; | mkdata
|
||||
echo '"."]}'
|
||||
} >api/apis.json
|
||||
|
||||
echo 'done'
|
||||
}
|
||||
|
||||
main "$@"
|
|
@ -1,12 +1,21 @@
|
|||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
main() {
|
||||
./scripts/sass.sh
|
||||
S='./scripts'
|
||||
SCRIPTS=(sass apis)
|
||||
|
||||
find . -name '_*.css' -or \
|
||||
-name '*.sass.css' -type f -exec rm -rfv {} \;
|
||||
main() {
|
||||
for script in "${SCRIPTS[@]}"; do
|
||||
_s="$S/$script.sh"
|
||||
|
||||
echo
|
||||
echo " ** Script: $_s **"
|
||||
echo
|
||||
|
||||
chmod +x -- "$_s"
|
||||
"$_s"
|
||||
done
|
||||
|
||||
git add -A
|
||||
git commit -sam "${m:-update @ $(date)}"
|
||||
|
|
|
@ -14,7 +14,9 @@ main() {
|
|||
done
|
||||
|
||||
echo " >> Removing residuals"
|
||||
find . -name '_*.css' -type f -exec rm -f {} \;
|
||||
find . -name '_*.css' -or \
|
||||
-name '*.sass.css' -type f -exec rm -rfv {} \;
|
||||
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
|
@ -20,4 +20,12 @@
|
|||
<loc>https://files.ari-web.xyz/</loc>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.ari-web.xyz/api</loc>
|
||||
<priority>0.5</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.ari-web.xyz/page/reset</loc>
|
||||
<priority>0.4</priority>
|
||||
</url>
|
||||
</urlset>
|
||||
|
|
Loading…
Add table
Reference in a new issue