Update the documentation to describe usage of sass

This commit is contained in:
Roland Geider
2020-08-19 16:04:29 +02:00
parent dde6da34b5
commit 5be8c8d159
5 changed files with 13 additions and 3 deletions

View File

@@ -7,8 +7,9 @@ Changelog
Upgrade steps from 1.9:
* Update python libraries ``pip install -r requirements.txt``
* Install ``yarn`` (e.g. ``sudo npm install -g yarn``)
* Install ``yarn`` and ``sass`` (e.g. ``sudo npm install -g yarn sass``)
* Update CSS and JS libraries ``yarn install``
* Compile the CSS ``sass wger/core/static/scss/main.scss:wger/core/static/yarn/bootstrap-compiled.css``
* Update static files (only production): ``python manage.py collectstatic``

View File

@@ -28,7 +28,7 @@ Install Requirements
::
$ pip install -r requirements_devel.txt
$ npm install yarn
$ npm install -g yarn sass
$ python setup.py develop
Install application

View File

@@ -113,6 +113,7 @@ Get the application::
git clone https://github.com/wger-project/wger.git /home/wger/src
cd /home/wger/src
pip install -r requirements.txt
npm install -g yarn sass
python setup.py develop
pip install psycopg2 # Only if using postgres
wger create_settings \

View File

@@ -27,6 +27,14 @@ the source and do ::
This happens automatically during the bootstrap process.
Updating SASS files
```````````````````
After updating the SASS files, you need to compile them to regular CSS::
sass wger/core/static/scss/main.scss:wger/core/static/yarn/bootstrap-compiled.css
Clearing the cache
``````````````````