mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
Compare commits
1 Commits
2.0.0-rc.9
...
test-fix-t
Author | SHA1 | Date | |
---|---|---|---|
3423747f33 |
@ -1 +0,0 @@
|
|||||||
// override vars for theming here
|
|
@ -25,6 +25,10 @@ def _(event):
|
|||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
theme_file = Path("data/_theme.scss")
|
||||||
|
if not theme_file.exists():
|
||||||
|
theme_file.write_text("// override vars for theming here")
|
||||||
|
|
||||||
print("Welcome to microblog.pub setup wizard\n")
|
print("Welcome to microblog.pub setup wizard\n")
|
||||||
print("Generating key...")
|
print("Generating key...")
|
||||||
if _KEY_PATH.exists():
|
if _KEY_PATH.exists():
|
||||||
|
8
tasks.py
8
tasks.py
@ -46,16 +46,16 @@ def compile_scss(ctx, watch=False):
|
|||||||
# type: (Context, bool) -> None
|
# type: (Context, bool) -> None
|
||||||
from app.utils.favicon import build_favicon
|
from app.utils.favicon import build_favicon
|
||||||
|
|
||||||
|
theme_file = Path("data/_theme.scss")
|
||||||
|
if not theme_file.exists():
|
||||||
|
theme_file.write_text("// override vars for theming here")
|
||||||
|
|
||||||
favicon_file = Path("data/favicon.ico")
|
favicon_file = Path("data/favicon.ico")
|
||||||
if not favicon_file.exists():
|
if not favicon_file.exists():
|
||||||
build_favicon()
|
build_favicon()
|
||||||
else:
|
else:
|
||||||
shutil.copy2(favicon_file, "app/static/favicon.ico")
|
shutil.copy2(favicon_file, "app/static/favicon.ico")
|
||||||
|
|
||||||
theme_file = Path("data/_theme.scss")
|
|
||||||
if not theme_file.exists():
|
|
||||||
theme_file.write_text("// override vars for theming here")
|
|
||||||
|
|
||||||
if watch:
|
if watch:
|
||||||
run("boussole watch", echo=True)
|
run("boussole watch", echo=True)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user