Updated Building (markdown)

Harvey Tindall 2020-08-04 18:26:56 +01:00
parent 73a0139256
commit bea32c962f

@ -1,5 +1,3 @@
***Note: there seem to be numerous issues with the current build scripts on Windows, so build in WSL or docker instead.***
* First, make sure you have poetry installed. See [here](https://python-poetry.org/docs/) for instructions.
* Then clone the repo.
@ -17,8 +15,12 @@ hrfee@lab:~/jellyfin-accounts# poetry shell
Once you have it, run
```
hrfee@lab:~/jellyfin-accounts# poetry run task compile-css
assuming npm bin directory "/home/hrfee/jellyfin-accounts/node_modules/.bin". Is this correct?
[yY/nN]:
```
It will ask you a similar question about your npm bin directory. Check the path exists and isn't empty before saying yes. If you say no, it'll make another guess or ask you to input it yourself.
This will install BS5, BS4, `clean-css`, `postcss`, and `autoprefixer`, the last of which help clean up the resulting files. It then copies the Bootstrap files into the `jellyfin_accounts/data/static/` directory, and compiles the alternate theme.
Once done, you should have `bs4.css, bs5.css, bs4-jf.css, bs5-jf.css` inside the `jellyfin_accounts/data/static/` directory.