Run
git clone [email protected]:inyokaproject/theme-ubuntuusers.gitnext to the cloned Inyoka repository. (Basically, it doesn't matter were you clone the theme repository, but for support reasons it might be better to use the same base folder like for Inyoka). After cloning the file-structure should look like:$ tree -L 1 . ├── inyoka ├── theme-ubuntuusers └── maybe another-theme
Switch into the repository:
cd theme-ubuntusersActivate source
source ~/.venvs/inyoka/bin/activateInstall as a development package:
pip install -e .Run
npm installto install all node dependencies (most relevant islessto generate the CSS)Run
npm run watchto build all static files and watch for file changes on the CSS / JS files (If it does not work for you out of the box, check whether you have a package likeinotify-toolsinstalled)Let Django know about the theme. Add
'inyoka_theme_ubuntuusers'to theINSTALLED_APPSininyoka/development_settings.py:INSTALLED_APPS = INSTALLED_APPS + ( 'inyoka_theme_ubuntuusers', )
Run
python manage.py collectstatic --noinput --linkin your inyoka instance This will create a directoryinyoka/static-collectedin your inyoka repository. The directory contains links to the found static files in the theme repository. These statics will be served during development.--noinputwill prevent a 'Are you sure?' question- With
--linkyou have to only runcollectstaticagain, if a new file was added
If you want to see some possible locations to improve the JavaScript run npm run jshint.
- Run
pip install -U "git+ssh://[email protected]:inyokaproject/theme-ubuntuusers.git@staging#egg=inyoka-theme-ubuntuusers"
- Run
npm installto install all node dependencies (most relevant islessto generate the CSS) - Run
npm run allto build all static files - Run
python manage.py collectstaticin your inyoka instance