This extension is used together with ckanext-tayside.
To install ckanext-dundee:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-dundee Python package into your virtual environment:
pip install git+https://github.com/ViderumGlobal/ckanext-dundee.git#egg=ckanext-dundee
Add
dundee
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/production.ini
).
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
To install ckanext-dundee for development, activate your CKAN virtualenv and do:
git clone https://github.com/ViderumGlobal/ckanext-dundee.git cd ckanext-dundee python setup.py develop
This extension uses LESS for styles. All changes must be made in one of the LESS
files located in the ckanext-dundee/ckanext/dundee/fanstatic/less
folder.
In order to compile those files to CSS, the less npm module is used.
First make sure that you have installed Node.js. That
will install the npm
package manager. After that, open up the terminal and
change the current directory to ckanext-dundee/ckanext/dundee/fanstatic
.
Then run the following command that is going to install LESS:
npm install less
After a successful installation, run the next command to compile the main less
file dundee.less
to dundee.css
:
./node_modules/.bin/lessc less/dundee.less css/dundee.css
Every time there is some change in one of the less files, the upper command needs to be run to compile those files to one css file.