GithubHelp home page GithubHelp logo

datopian / ckanext-dundee Goto Github PK

View Code? Open in Web Editor NEW
2.0 25.0 4.0 311 KB

Theming extension for Dundee city

License: GNU Affero General Public License v3.0

Python 30.18% HTML 18.16% CSS 51.66%
ckan ckanext dundee

ckanext-dundee's Introduction

Requirements

This extension is used together with ckanext-tayside.

Installation

To install ckanext-dundee:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-dundee Python package into your virtual environment:

    pip install git+https://github.com/ViderumGlobal/ckanext-dundee.git#egg=ckanext-dundee
  3. Add dundee to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).
  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Development Installation

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

Modify CSS

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.

Funded by

image

image

ckanext-dundee's People

Contributors

gocemitevski avatar goranmaxim avatar jgulic avatar muhammadismailshahzad avatar zelima avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.