Bugfix logo change #87
|
@ -91,7 +91,7 @@ latest_remote_sha () {
|
||||||
# do the build
|
# do the build
|
||||||
build_page() {
|
build_page() {
|
||||||
# sync logo with spaceapi
|
# sync logo with spaceapi
|
||||||
"python3" "$CLONE_DIR""/spaceapi.py" "$CLONE_DIR"
|
./spaceapi.py "$CLONE_DIR"
|
||||||
|
|
||||||
TMPDIR=$(mktemp -d -t hugo_build_XXXXX)
|
TMPDIR=$(mktemp -d -t hugo_build_XXXXX)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
# Python Requirements
|
# Python Requirements
|
||||||
# python3
|
# python3
|
||||||
# requests
|
# requests
|
||||||
|
@ -6,6 +7,7 @@
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from typing import List
|
||||||
|
|
||||||
path: str = sys.argv[1]
|
path: str = sys.argv[1]
|
||||||
api: str = "https://api.dezentrale.cloud/spaceapi/v14"
|
api: str = "https://api.dezentrale.cloud/spaceapi/v14"
|
||||||
|
@ -14,7 +16,7 @@ space_closed: str = path + "/assets/logo_closed"
|
||||||
space_unknown: str = path + "/assets/logo_unknown"
|
space_unknown: str = path + "/assets/logo_unknown"
|
||||||
space_logo: str = path + "/assets/logo"
|
space_logo: str = path + "/assets/logo"
|
||||||
|
|
||||||
extensions: list[str] = [".png", ".svg"]
|
extensions: List[str] = [".png", ".svg"]
|
||||||
|
|
||||||
# every extension needs to be linked
|
# every extension needs to be linked
|
||||||
def link(src: str, dest: str):
|
def link(src: str, dest: str):
|
||||||
|
|
Reference in New Issue