mirror of
https://github.com/wger-project/wger.git
synced 2026-02-18 00:17:51 +01:00
Update the documentation to describe usage of sass
This commit is contained in:
@@ -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``
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
``````````````````
|
||||
|
||||
|
||||
Reference in New Issue
Block a user