forked from forks/microblog.pub
Compare commits
1 commit
v2
...
test-fix-t
Author | SHA1 | Date | |
---|---|---|---|
|
3423747f33 |
3 changed files with 8 additions and 5 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue