fix: add custom style to better match farmOS color scheme

This commit is contained in:
Lance Edgar 2026-02-07 09:48:26 -06:00
parent 87b97f53b8
commit 768859b6b9
9 changed files with 2511 additions and 1 deletions

View file

@ -22,5 +22,21 @@ def release(c, skip_tests=False):
if os.path.exists("dist"):
shutil.rmtree("dist")
# custom styles for buefy
update_style(c)
c.run("python -m build --sdist")
c.run("twine upload dist/*")
@task
def update_style(c):
"""
Build/update the `wuttafarm-buefy.css` file
"""
os.chdir("style")
# c.run("nvm use lts/krypton")
c.run("npm install")
c.run("npm run build")
os.chdir(os.pardir)
shutil.copy("style/dist/css/wuttafarm-buefy.css", "src/wuttafarm/web/static/css/")