browsers will no longer cache colors.css which fixes colors not updating

This commit is contained in:
Paul Houser 2020-08-26 15:52:43 -07:00
parent d60c0212e7
commit 14a00433f8
2 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,7 @@ def gen_style(file_dict):
if theme == "pywal":
theme = home + '/.cache/wal/colors.css'
else:
theme = './themes/' + theme + '.css'
theme = repo_dir + '/themes/' + theme + '.css'
copyfile(theme, home + '/.cache/StartTree/styles/colors.css')

View File

@ -62,4 +62,7 @@ ln -s $FILEPATH $HOME/.local/bin/starttree.py
echo "generate.py has been linked to $HOME/.local/bin/"
echo "Make sure this directory is in your \$PATH"
FILEPATH=$(readlink -f "docker/data/default.conf")
ln -s $FILEPATH $HOME/.cache/StartTree/default.conf
sed -i "/# replace line/{n;s@.*@repo_dir = \"$(pwd)\"@}" generate.py