mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-20 01:52:32 +01:00
deploy: 2edec53092
This commit is contained in:
parent
c4fce7935c
commit
d824c6ed3c
@ -133,7 +133,7 @@ def temporary_copy_files():
|
|||||||
shutil.copytree(src,src_dst[src],dirs_exist_ok=True)
|
shutil.copytree(src,src_dst[src],dirs_exist_ok=True)
|
||||||
|
|
||||||
def create_theme_options():
|
def create_theme_options():
|
||||||
def create_app(folder):
|
def create_css(folder):
|
||||||
with open(f"{folder}/{app}/{theme.lower()}.css", "w") as create_app:
|
with open(f"{folder}/{app}/{theme.lower()}.css", "w") as create_app:
|
||||||
content = f'@import url("{applications[app]["base_css"]}");\n@import url("{themes[theme]["url"]}");'
|
content = f'@import url("{applications[app]["base_css"]}");\n@import url("{themes[theme]["url"]}");'
|
||||||
create_app.write(content)
|
create_app.write(content)
|
||||||
@ -145,7 +145,7 @@ def create_theme_options():
|
|||||||
for theme in themes:
|
for theme in themes:
|
||||||
folders = ["./CSS/themes","./css/base"]
|
folders = ["./CSS/themes","./css/base"]
|
||||||
for folder in folders:
|
for folder in folders:
|
||||||
create_app(folder)
|
create_css(folder)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user